Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/react-native-training/reactxp-starter
Basic Blank ReactXP Project for Development
https://github.com/react-native-training/reactxp-starter
android ios react-native reactnative typescript
Last synced: 2 days ago
JSON representation
Basic Blank ReactXP Project for Development
- Host: GitHub
- URL: https://github.com/react-native-training/reactxp-starter
- Owner: react-native-training
- Created: 2017-04-15T22:30:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T03:48:14.000Z (over 2 years ago)
- Last Synced: 2024-03-14T23:39:27.390Z (8 months ago)
- Topics: android, ios, react-native, reactnative, typescript
- Language: Objective-C
- Size: 46.4 MB
- Stars: 73
- Watchers: 8
- Forks: 14
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.