- Watchman Install Instructions
- Node & NPM Install Instructions
- React Native Debugger Install Instructions
- React Native CLI Install Instructions
- JDK Install Instructions
- XCode Install Instructions
Note: you don't technically need to have both the android and ios environments set up to develop on this app, but it is encouraged to have both and to develop on both at the same time when writing React Native code.
To get started, clone this project and navigate to the directory
git clone https://github.com/lelandrichardson/react-native-in-depth.git
cd react-native-in-depth
From here, you will need to run npm install
once before running the app.
Feel free to work with whatever IDE you'd like. It's just JavaScript, so any editor will work here. If you would like something that is made specifically for these types of projects, check out one of the following:
To start debugging the app, you can use the react-native CLI from the root of the project:
To run and debug on iOS:
react-native run-ios
To run and debug on Android:
react-native run-android
Open the React Native Debugger with CMD + d
in the iOS emulator or CMD + m
in the Android emulator.
- React Native Official Documentation
- React Native Express
- Flexbox Froggy
- React Native Getting Started doc
Note: verify you don't already have this isntalled by running node --version
. If it returns anything greater than 6, you're good.
You will want to have node and npm installed on your machine.
If you don't currently have nvm installed, you can install it with the following command:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
When that is done, run:
nvm install node
You should be ready to go!
Note: verify you don't already have this isntalled by running which watchman
.
brew install watchman
brew update && brew cask install react-native-debugger
Note: verify you don't already have this isntalled by running which react-native
.
npm i -g react-native-cli
Note: verify you don't already have this isntalled by running echo $ANDROID_HOME
.
Download and isntall here
You'll also probably want to follow the instructions laid out here
Install XCode from the Mac App store if you do not have it.