Skip to content

react-native-training/reactxp-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

040cf7e · May 13, 2017

History

13 Commits
Apr 15, 2017
May 5, 2017
Apr 15, 2017
May 5, 2017
Apr 15, 2017
Apr 15, 2017
Apr 15, 2017
May 5, 2017
Apr 15, 2017
Apr 15, 2017
Apr 15, 2017
Apr 16, 2017
May 5, 2017
May 5, 2017
Apr 15, 2017
Apr 15, 2017
May 13, 2017
May 10, 2017
Apr 15, 2017
May 5, 2017

Repository files navigation

RXP

This app works on React Native (iOS, Android) and web. Most of the app's code is contained in App.tsx.

The commands in the instructions below assume you are in the root of this repo.

Initial Setup

  • Run npm install. This fetches the dependencies.
  • Open node_modules/reactxp/dist/native-common/App.js and replace RN.AppRegistry.registerComponent('RXApp', with RN.AppRegistry.registerComponent('reactXPTest',

Building for Web

  • Run npm run web-watch. This compiles the TypeScript code and recompiles it whenever any files are changed.
  • Open index.html in your browser to view the result.

Building for React Native

  • Run npm run rn-watch. This compiles the TypeScript code and recompiles it whenever any files are changed.
  • In another command prompt run npm start. This starts the React Native Packager.
  • Use Xcode or Android Studio to build and deploy the native app code just like you would with any other React Native project.