This is the repository for the 2017-2018 JumboSmash React Native App. If you haven't dealt with React Native before, you should walk through the tutorial (React knowledge is not a prerequisite).
Other important things to check out:
- Typescript and ES6
- Redux
- Redux-Saga
brew install node
brew install watchman
npm install -g react-native-cli
npm install -g yarn
git clone [email protected]:zachkirsch/JumboSmash.git
cd JumboSmash
yarn install
- Download Xcode and Xcode command line tools. Please follow the directions on the RN docs.
- Download JDK 8 or newer.
- Download Android Studio and relevant SDKs. Please follow the directions on the RN docs.
- Install an Android Virtual Device. Please follow the directions on the RN docs. You'll have to create a dummy project in Android Studio to be able to see the virtual devices icon in the toolbar. You'll also probably have to install HAXM.
- Set up environment:
cat <<-"EOT" >> $HOME/.bash_profile export ANDROID_HOME=$HOME/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/platform-tools EOT source $HOME/.bash_profile
See the server repo for instructions.
The app needs to be compiled to JavaScript (from Typescript) to function:
yarn build
Instead, you can build and watch for changes to the Typescript, and automatically compile to JavaScript when necessary:
yarn watch
This step should happen automatically when you run step 4, but it doesn't hurt to start up the packager manually:
yarn start
For iOS, the simulator does not have to already be running. If it's not, running this command will first launch the simulator.
yarn run ios
For Android, the simulator must already be running.
yarn run android
yarn test