зеркало из https://github.com/microsoft/reactxp.git
148685062e | ||
---|---|---|
.. | ||
android | ||
ios | ||
jest | ||
scripts | ||
src | ||
web | ||
windows | ||
.eslintrc | ||
.gitignore | ||
README.md | ||
babel.config.js | ||
index.js | ||
metro.config.js | ||
package-lock.json | ||
package.json | ||
tsconfig.json |
README.md
RXPHelloWorld
This app works on React Native (iOS, Android, Windows) and web. The commands in the instructions below assume you are in the root of this repo.
Building
- From the hello-world directory, run
npm install
. This fetches the dependencies.
To run your app on Web:
npm run start:web
To build Web production version of your app:
npm run build:web
To run your app on iOS:
npm run start:ios
- or -
open ios/RXPHelloWorld.xcodeproj
project in Xcode
press the Run button
To run your app on Android:
Have an Android emulator running (quickest way to get started), or a device connected
npm run start:android
- or -
open android/
project in Android Studio
press the Run button
To run your app on Windows:
npm run start:windows
- or -
open windows/RXPHelloWorld.sln
project in Visual Studio
press the Run button