reactxp/samples/hello-world
Eric Traut 8b55976144 Updated dependences for all samples. 2018-09-30 13:51:14 -07:00
..
android Fix hello-world android sample (#358) 2017-11-15 11:33:43 -08:00
ios Updated samples - removing custom react.d.ts file. 2017-09-21 17:44:20 -07:00
src Updated dependencies in hello-world sample app. Made it compile with "strict" tsc setting. 2018-09-11 19:17:14 -07:00
.gitignore Added samples. 2017-04-06 13:03:55 -07:00
README.md Added samples. 2017-04-06 13:03:55 -07:00
index.android.js Added samples. 2017-04-06 13:03:55 -07:00
index.html Added missing Utf8 meta tag in web samples. 2018-09-07 20:15:38 -07:00
index.ios.js Added samples. 2017-04-06 13:03:55 -07:00
package-lock.json Updated dependences for all samples. 2018-09-30 13:51:14 -07:00
package.json Updated dependences for all samples. 2018-09-30 13:51:14 -07:00
tsconfig.json Updated dependencies in hello-world sample app. Made it compile with "strict" tsc setting. 2018-09-11 19:17:14 -07:00
webpack.config.ts Updated all sample apps to use latest package versions. 2018-04-04 16:37:28 -07:00

README.md

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 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.