Skip to content

Instantly share code, notes, and snippets.

@mikekavouras
Last active October 7, 2017 23:42
Show Gist options
  • Save mikekavouras/87ee36320188189fa370b06bd302827f to your computer and use it in GitHub Desktop.
Save mikekavouras/87ee36320188189fa370b06bd302827f to your computer and use it in GitHub Desktop.

React Native!

Prerequisites

Node (v8.4.0): https://nodejs.org/en/
NPM/Yarn (>= v5.3.0 / v0.27.5): https://docs.npmjs.com/cli/install / https://yarnpkg.com/lang/en/docs/install/
React Native (v0.48): https://facebook.github.io/react-native/docs/getting-started.html

NVM

For Node, it's highly recommended you use a version manager. NVM is great and allows you to have multiple versions of Node installed simultaneously.

Node version mananager https://github.com/creationix/nvm

Device

React Native requires a simulator/emulator to run.

iOS
Xcode: https://developer.apple.com/download/ or you can download it from the app store.

Android
With Android Studio: https://developer.android.com/studio/index.html
Without Android Studio: https://medium.com/skyshidigital/install-react-native-without-android-studio-366317419e7e

Create an app

$ npm install -g create-react-native-app
$ create-react-native-app AwesomeProject
$ cd AwesomeProject
$ yarn start
$ yarn run ios/android

Good to read through https://facebook.github.io/react-native/

Running your app without Expo

https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md#ejecting-from-create-react-native-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment