Last active
December 7, 2017 02:50
-
-
Save DeveloperBeau/ee477a3cad75ae3a09a8dc8591aa69cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #React native commands | |
| #Android is different where the simulator has to be running before it can be built to a device. | |
| #please note that you should replace the android model with the emulator you use. | |
| #sleep is due to my own machine's time to bring up a simulator | |
| #as run android has a chance to break if the simulator isn't up by the time it finishes compiling the app. | |
| run-android () { $ANDROID_HOME/tools/emulator -avd Nexus_5X_API_23 &\ | |
| sleep 15;\ | |
| react-native run-android &\ | |
| wait } | |
| #iOS is lot simpler ;) | |
| run-ios () { react-native run-ios } | |
| #When react native (normally android but has happened with iOS) bugs out while compiling, try running this | |
| fix-react-native () { npm install &\ | |
| yarn &\ | |
| yarn start --reset-cache &\ | |
| wait } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You asked for it, and I provide. my .zsh functions for react native development.
Don't forget to install yarn as well as npm (as i prefer yarn).