A template for setting up a React client app repo
Supports:
- Web (react-native-web)
- Mobile (react-native)
- Fork this repo
-
Run
yarn install(or justyarn)- Make sure
yarn postinstallruns successfully
- Make sure
-
Run
yarn pod-installto install iOS dependencies
- On iOS:
yarn ios - On Android:
yarn android - Start Metro bundler:
yarn start- Running
yarn ios/yarn androidwill automatically start Metro if it's not already running.
- Running
- Run unit tests:
yarn test - Run E2E tests:
yarn detox:build && yarn detox:(ios | android)
- Install brew: https://brew.sh
- Install yarn:
brew install yarn - Install watchman:
brew install watchman - Install nvm:
brew install nvm- Please follow additional instructions in
Caveatsafter brew installing. You will need to update your shell config file(~/.bashrc,~/.zshrc) - You can optionally integrate
nvmto detect which node veresion to use when changing directories: https://github.com/nvm-sh/nvm
- Please follow additional instructions in
- Install node:
nvm install && nvm use- Running
node -vshould match.nvmrc
- Running
Download the latest version of Xcode from the Mac App Store. If you need an older version of Xcode, visit: https://developer.apple.com/download/more/?=xcode.
- Install Java SDK >= 8:
brew install --cask adoptopenjdk/openjdk/adoptopenjdk8- Verify you're on version 8:
java -version
- Verify you're on version 8:
- Install Android Studio
Follow up-to-date guide on https://reactnative.dev/docs/environment-setup