rxp-hello-world-js
v1.0.0
Published
This app works on React Native (iOS, Android) and web. Most of the app's code is contained in `App.tsx`.
Downloads
6
Readme
RXPHelloWorld
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.
Building for Web
- Run
npm run web-watch
. This transpiles the ES6 code and retranspiles it whenever any files are changed. - Open
index.html
in your browser to view the result.
Building for React Native
- Option 1:
- In a 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.
- In a command prompt run
- Option 2
- In a command prompt run
npm android
ornpm ios
. This starts the React Native Packager and deploys your application to the appropriate platform.
- In a command prompt run