Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

HackMerced/ReactNative-Workshop

Repository files navigation

ReactNative-Workshop

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) Clone & Install Dependencies

  • 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 yarn or npm install

2) Start your app

  • 2.1) Start the react native packager, run yarn run start or npm start from the root of your project.
  • 2.2) [iOS] Build and run the iOS app, run npm run ios or yarn run ios from 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 android or yarn run android from the root of your project.