React-Native Common Commands

To get the list of available emulator

 

To open a emulator

 

Listing all available simulators

 

open -a Simulator

 

Print log on Terminal

 

React Devtools

https://github.com/facebook/react-devtools/tree/master/packages/react-devtools

 

Reset Cache

 

Update Dependency

 

 


1. Clear watchman watches: watchman watch-del-all.
2. Delete the node_modules folder: rm -rf node_modules && npm install.
3. Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache.
4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.

 

Build APK

 

if ./gradlew: Permission denied

 

Import React-Native bundle

 

 

Follow this tutorial for creating SHA1 fingerprint for Google Map v2

For Debug mode::

for Release mode::

example:

 

Android Studio Heap Memory

if Android Studio give overload CG issue.

org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=4096m -XX:+HeapDumpOnOutOfMemoryError
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureondemand=true

warningComments are closed.