Skip to content

Instantly share code, notes, and snippets.

@badarshahzad
Created October 11, 2018 05:12
Show Gist options
  • Save badarshahzad/f3081bcb6e621e397de26e38cea58fb0 to your computer and use it in GitHub Desktop.
Save badarshahzad/f3081bcb6e621e397de26e38cea58fb0 to your computer and use it in GitHub Desktop.
Here is the couple commands for the Android & React Native
/*******************
* Android
*******************/
Where is the emuator in your directory:
/root/Android/Sdk/emulator
$> ./emulator -list-avds
/*******************
* React Native
*******************/
$>
@badarshahzad
Copy link
Author

For IOS $ react-native log-ios
For Android $ react-native log-android

@badarshahzad
Copy link
Author

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

@badarshahzad
Copy link
Author

react-native run-android --variant=release
react-native run-android --variant=debug

@badarshahzad
Copy link
Author

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