A very basic React Native starter project.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android
ios
js
.babelrc
.buckconfig
.flowconfig
.gitattributes
.gitignore
.watchmanconfig
README.md
app.json
index.js
package-lock.json
package.json

README.md

React Native Starter

A simple starter project for React Native apps.

Author

Ian Turner ( @i_am_turner / iamturner.co.uk )

Installation

On the command prompt run the following commands

$ git clone https://github.com/iamturner/ReactNative-Boilerplate.git

$ cd ReactNative-Boilerplate/

$ npm install

Rename App (optional)

To rename the app instead of 'Starter', run the following commands.

$ npm install react-native-rename -g

$ react-native-rename "NEW APP NAME" -b com.bundle.identifier

iOS

On the command prompt run the following commands

$ react-native run-ios

Android

Note: Before running react-native run-android for the first time, open the project in Android Studio to generate local.properties file, or rename the local.properties.example file included.

$ react-native run-android

Tip: To open an Android emulator without opening Android Studio (for MacOS).

On the command prompt run the following commands.

Library/Android/sdk/tools/emulator -list-avds

This returns a list of installed emulators. Choose which emulator you want to run, e.g. Pixel_API_25, and then enter:

Library/Android/sdk/tools/emulator -avd <EMULATOR_NAME>