- rm node_modules/
- use ; for muti line commands
- rm $TMPDIR/react-* ; rm ios/build ; rm node_modules ; yarn cache clean ; npm cache verify
-
react-native --help
-
react-native start
-
adb devices
-
react-native run-android or run-ios
-
react-native run-android --deviceId XXxxxxx
-
react-native run-android --variant=release
-
react-native log-android
-
adb shell input keyevent 82
-
adb reverse tcp:8081 tcp:8081
-
adb install APK_NAME.apk
Directely install in Device
-
adb logcat
// Native logs
-
cd android && ./gradlew assembleRelease
Release Build
-
cd android && ./gradlew clean
Gradlew Clean
-
./gradlew :app:dependencies
Check Project dependency
-
rm -rf node_modules/
Remove Node_modules
-
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
used for making build
-
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle
bundle only
- keytool -genkeypair -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
-
(Command) java -jar bundletool.jar build-apks --bundle=release/app.aab --output=outputapk/app.apks --connected-device --ks=ryderpassenger.keystore --ks-pass=pass:rydrpassenger --ks-key-alias=rydrpassenger --key-pass=pass:rydrpassenger
-
bundletool should be at same folder bundletool
-
bundle
path of .aab file
-
output
destination path where apks zip folder should go
-
connected-device/ universal
-
ks
keystore path
-
ks-pass
keystore password
-
ks-key-alias
keystore alias
- chmod -R 777 folder_name/file_name
adb Server (no permissions)
- sudo adb kill-server
- sudo adb start-server
- npm install or yarn install
- watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf ios/build && rm -rf node_modules && yarn cache clean && npm cache verify
- watchman watch-del-all && rm -rf ios/build && rm -rf node_modules && yarn cache clean && npm cache verify
- yarn install && yarn start --reset-cache
- npm install && npm start --reset-cache
- nvm install 9.11.1
- nvm use 9.11.1
- ./node_modules/.bin/eslint --init
- pod init
- pod install
- sudo gem install cocoapods
- ctrl+p for Searching files from Visual Studio
- ctrl+J for getting Terminal on Visual Studio Code
- ctrl+, for Setting in Visual Studio
- lsof -nP -i4TCP:8545 | grep LISTEN
- kill -9 [post_no]
- killall -9 node
- netstat -plten | grep LISTEN | grep 8081
- truffle test
- truffle compile
- truffle migtate --reset --all
- truffle migtate --network=development --reset
- git log -n 1