Node
node -v #顯示版本,檢查node是否正確安裝
node src/test.js #執行src目錄下test.js文件
NPM
npm -v
npm install
npm install react-navigation --save 或 -S
npm install react-navigation --save-dev 或 -D
npm install -g react-navigation
npm list
npm list -g
npm -g list --depth 0
npm config list
npm config list
npm show react-navigation
npm update
npm update react-navigation
npm update -g react-navigation
npm uninstall react-navigation
npm run
npm init demo
npm publish demo
YARN
yarn -v
yarn 或者 yarn install
yarn add react-navigation
yarn add props-type
yarn remove react-navigation
yarn run
ReactNative
react-native --version
react-native init demo --version 0.40.0
react-native start
react-native run-android
react-native run-ios
react-native run-ios --simulator 'iPhone X'
react-native upgrade
react-native link
Android
adb devices
adb tcpip 5555
adb connect 192.168.0.101:5555
adb disconnect 192.168.0.101:5555
adb shell input keyevent 82
adb install 包名
adb uninstall 包名
./gradlew clean
./gradlew assembleDebug
./gradlew assembleRelease