mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 13:05:59 +02:00
react-native: add page (#5208)
This commit is contained in:
parent
f6da0b2e67
commit
08b3bac91d
1 changed files with 36 additions and 0 deletions
36
pages/common/react-native.md
Normal file
36
pages/common/react-native.md
Normal file
|
@ -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`
|
Loading…
Add table
Reference in a new issue