nvm install v8.0.0; nvm use v8.0.0; nvm list; which node;
echo 'export PATH="/usr/local/share/npm/bin:$PATH"' >> ~/.bash_profile; source ~/.bash_profile
brew install watchman; brew upgrade watchman; which watchman
cd PeerAI; yarn add global react-native-cli; yarn add react-native
cd PeerAI; yarn install --verbose; npm install --verbose
react-native run-ios --help
cd PeerAI
open ios/PeerAI.xcodeproj
ios-sim showdevicetypes
react-native run-ios
cd PeerAI
android
android --help
android list targets
android create avd -n <name> -t <target> --abi default/x86_64
).
Note: Devices stored in ~/.android/avd/.android/avd/
android create avd -n "react" -t "android-N" --abi default/x86_64
android list avd
android avd
emulator -avd <name>
)
emulator -avd "react"
react-native run-android --help
adb devices
$ adb devices
List of devices attached
emulator-5554 device
rm android/app/build/outputs/apk/app-debug.apk
react-native run-android --deviceId "emulator-5554"
open http://localhost:8081/debugger-ui
kill $(lsof -t -i:8081)
OR
sudo lsof -n -i4TCP:8081 | grep LISTEN
kill -9 <cma process id>
cd PeerAI
rm -rf ios/build/
rm -rf android/build/