Make sure to have npm and node install! https://nodejs.org/en/
Now, we can install react-native globally on your system if you don't have it already:
npm install -g react-native-cli- 1.1)
git clone https://github.com/HackMerced/ReactNative-Workshop.git - 1.2)
cd ReactNative-Workshop- cd into your newly created project directory. - 1.3) Install NPM packages with your package manager of choice - i.e run
yarnornpm install
- 2.1) Start the react native packager, run
yarn run startornpm startfrom the root of your project. - 2.2) [iOS] Build and run the iOS app, run
npm run iosoryarn run iosfrom the root of your project. The first build will take some time. This will automatically start up a simulator also for you on a successful build if one wasn't already started. - 2.3) [Android] If you haven't already got an android device attached/emulator running then you'll need to get one running (make sure the emulator is with Google Play / APIs). When ready run
npm run androidoryarn run androidfrom the root of your project.