/react-native-redux-starter-kit

Get started with React Native and Redux.

Primary LanguageObjective-CMIT LicenseMIT

react-native-redux-starter-kit

Dependency Status devDependency Status

Get started with React Native and Redux.

Requirements

  • Node.js 4.x or newer

Stack

  • React Native ^0.18.0 for building native apps using react
  • Redux 4.0.x a predictable state container for Javascript apps
  • Remote Redux DevTools use Redux DevTools remotely for React Native apps.
  • Babel 6.x.x for ES6+ support
  • Immutable Immutable persistent data collections for Javascript
  • ExNavigator a route-centric navigation built on top of React Native's Navigator
  • Webpack module loader and bundler

Getting started

Just clone the repo and start :

$ git clone https://github.com/LeoLeBras/react-native-redux-starter-kit.git myAwesomeApp
$ cd myAwesomeApp
$ npm i                         # Install Node.js components listed in ./package.json

And see Getting Started to install requirement tools.

How to use ?

$ npm start                     # or: env NODE_ENV=DEV rnws start

This will start a lightweight development server.

iOS:

Open App.xcodeproj in Xcode, build and run the project.

Android:
$ npm run android-setup-port    # adb reverse tcp:8081 tcp:8080

Start your emulator or connect your device.

Redux DevTools

iOS:

Cmd+D from within the Simulator, select Debug in Chrome from the developer menu and :

$ npm run remotedev

Bundling for release

$ npm run build                # or: env NODE_ENV=PRODUCTION rnws bundle

Issues

If you run into any issues please see the Getting Started guide for React Native before submitting an issue.