Created
October 11, 2018 05:12
-
-
Save badarshahzad/f3081bcb6e621e397de26e38cea58fb0 to your computer and use it in GitHub Desktop.
Here is the couple commands for the Android & React Native
This file contains 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
/******************* | |
* Android | |
*******************/ | |
Where is the emuator in your directory: | |
/root/Android/Sdk/emulator | |
$> ./emulator -list-avds | |
/******************* | |
* React Native | |
*******************/ | |
$> |
For IOS $ react-native log-ios
For Android $ react-native log-android
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
Reference: https://stackoverflow.com/questions/52777413/reactnative-metro-bundler-not-starting-automatically
react-native run-android --variant=release
react-native run-android --variant=debug
There is not debug.keystore in android
keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To kill the demon of the emulator.
Issues like
adb server is out of date. killing...
cannot bind 'tcp:5037': Address already in use ADB server didn't ACK failed to start daemon
Error: device offline
Referance: https://stackoverflow.com/questions/10680417/error-device-offline/15883498