/react-native-es6

Primary LanguageJavaScriptMIT LicenseMIT

React Native ES6 Boilerplate for kick starting a project.

This project was bootstrapped with Create React Native App.

Visit here for full CRNA docs.

Table of Contents

Getting Started

  1. Clone the project
  2. Install Expo
  3. Install React Native Debugger

Redux ready on redux branch.

Available Scripts

Create React Native Scripts

Runs your app in development mode.

npm start

Runs your app in development mode with an interactive prompt

Open it in the Expo app on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.

This will launch Expo in Tunnel mode, which is working with React Native Debugger if you run the app on a real device.

npm test

Runs the jest test runner on your tests.

npm run ios

Like npm start, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed.

npm run android

Like npm start, but also attempts to open your app on a connected Android device or emulator.

npm run expo

Runs your app in development mode with Expo in LAN mode.

npm run debug

Opens React Native Debugger app connecting to host localhost, port 19001

Debug on real device with React Native Debugger

Install React Native Debugger

Install Expo

Start the app in Expo LAN mode:

npm run expo

Start RND app:

npm run debug

Open it with Expo app on your phone. Shake the phone, select Remote JS Debugging