Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.14 KB

README.md

File metadata and controls

50 lines (32 loc) · 1.14 KB

create-xp-app

ReactXP Project Generator

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

To get started, install the create-xp-app cli globally

npm i -g create-xp-app

To create a new ReactXP app

  1. Run create-xp-app
create-xp-app MyProject

cli

To run on web:

  1. Run npm run web-watch
npm run web-watch

This compiles the TypeScript code and recompiles it whenever any files are changed.

  1. Open index.html in your browser to view the result.

Building for React Native (iOS, Android, Windows)

  1. Run npm run rn-watch
npm run rn-watch  

This compiles the TypeScript code and recompiles it whenever any files are changed.

  1. In another command prompt run npm start
npm start

This starts the React Native Packager.

Use the command line, Xcode or Android Studio to build and deploy the native app code just like you would with any other React Native project.