Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native: add page #5208

Merged
merged 4 commits into from
Feb 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions pages/common/react-native.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# react-native

> A framework for building native apps with React.
> More information: <https://reactnative.dev>.

- Initialize a new React Native project in a directory of the same name:

`react-native init {{project_name}}`

- Start the metro bundler:

`react-native start`

- Start the metro bundler with a clean cache:

`react-native start --reset-cache`

- Build the current application and start it on a connected Android device or emulator:

`react-native run-android`

- Build the current application and start it on an iOS simulator:

`react-native run-ios`

- Build the current application in `release` mode and start it on a connected Android device or emulator:

`react-native run-android --variant={{release}}`

- Start `logkitty` and print logs to stdout:

`react-native log-android`

- Start `tail system.log` for an iOS simulator and print logs to stdout:

`react-native log-ios`