Skip to content

Instantly share code, notes, and snippets.

@RidaRidss
Last active October 10, 2017 11:09
Show Gist options
  • Save RidaRidss/47908a8eca36908597777734d9a799b0 to your computer and use it in GitHub Desktop.
Save RidaRidss/47908a8eca36908597777734d9a799b0 to your computer and use it in GitHub Desktop.
Use command while working on React Native

Install React Native globally in system

npm install -g react-native-cli

sudo npm install -g create-react-app

Build New Project

react-native init new-app

Start node server

  react-native start

Build React Native project

   1.  react-native build-android

   2.  react-native build-ios

Run React Native project

   1.   react-native run-android

   2.  react-native run-ios

Popup event generation for reload / hot reload / remote debugging etc "(https://facebook.github.io/react-native/docs/debugging.html#accessing-the-in-app-developer-menu) "

  adb shell input keyevent 82

Logs in React Native project

   react-native log-android

2. react-native log-ios

Add Routing In React Native

1. sudo apt-get install yarn

2. yarn add react-native-router-flux

Add React Native Text Input Effects

npm install react-native-textinput-effects --save

Add React Native Vector Icons

npm install react-native-vector-icons --save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment