-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Run react-native run-android crash #517
Copy link
Copy link
Closed
Labels
Description
This bug happens on Android development only
We're using native icons everywhere in the app, but this is a limitation of react-native-navigation on header buttons when running in dev mode.
Workarounds:
- Option 1: Change all header buttons to use react-native-vector-icons
// before
icon: { uri: 'settings', scale: Dimensions.get('window').scale },
// after (remember to add `import { iconsMap } from '../../Icons';`)
icon: iconsMap.close,
-
Option 2: Run in release mode
This can be a pain if you're developing to Android only, but it can work if you're developing features on iOS (this bug doesn't exist on iOS) and testing on Android. -
Option 3: Open a PR fixing this at https://github.com/wix/react-native-navigation
Reactions are currently unavailable