-
install xcode
-
install react-native-cli as a global npm package
npm install react-native-cli
-
set up config/index.js in node_modules directory with frontend config TODO: move it out of node_modules
-
npm i
(Currently using react-native 0.60.5) -
Run rn-nodeify hack:
./node_modules/.bin/rn-nodeify --hack --install
-
Install pods:
cd ios && pod install && cd ..
-
npm start -- --reset-cache
-
on another terminal window run
react-native run-ios
-
Clear Watchman:
watchman watch-del-all
-
Delete node-modules and npm install (Use cautiously)
rm -rf node_modules && npm install
-
Reset React Native Caches: watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/metro-*
rm -rf $TMPDIR/haste-*
-
Run rn-nodeify hack again:
./node_modules/.bin/rn-nodeify --hack --install
-
Erase hardware and restart emulator