Genymotion is useful to grab a bunch of different emulators for Android and come with a personal use or paid license.
The device version and Genymotion may need to be aligned, so to do so, create a new Virtual Device.
This can be easily done by selecting
Create, choosing a device and then naming it to something useable like
To do so, first run the emulator. After the emulator is up and running, use
react-native run-android on the CLI to start the app. The CLI will respond if there are any errors.
Running a build from the IDE will generally give better support for debugging issues and auto-updating code.
Some errors I've come across:
|Ensure socket not in use eg no |
|Component Install error||Update your install for |
|UNMET PEER DEPENDENCY|
|If caused by react-native-router-flux -> update or search Github|
|Full cache reset||watchman watch-del-all && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache|
This one was a bit tricky - some useful Github pages:
https://github.com/aksonov/react-native-router-flux/issues/1803 https://github.com/facebook/react-native/issues/13390 https://github.com/react-community/react-navigation/issues/923 https://github.com/aksonov/react-native-router-flux/issues/1816
General React Native Commands
react-native upgrade- upgrade the files being used
react-native-git-upgrade- newer upgrade (needs to be install globally first)
Issues with React/ build path in Xcode?
sudo gem install cocoapods