From 08b3bac91d2b5d1963164bdb31d2745d71b4a03f Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Tue, 2 Feb 2021 20:16:28 -0300 Subject: [PATCH] react-native: add page (#5208) --- pages/common/react-native.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/react-native.md diff --git a/pages/common/react-native.md b/pages/common/react-native.md new file mode 100644 index 0000000000..804598888a --- /dev/null +++ b/pages/common/react-native.md @@ -0,0 +1,36 @@ +# react-native + +> A framework for building native apps with React. +> More information: . + +- 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`