svnshikhil
2/22/2018 - 11:44 AM

React Native#

# Initialize App
$ 

# Memory issue
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

# Build App
$ react-native run-android

# logs
$ react-native log-ios
$ react-native log-android

# link installed npm package
$ react-native link <Package

# Create Build apk
$ react-native run-android --variant=release

# List devices
$ adb devices
# Creating signed apk
https://facebook.github.io/react-native/docs/signed-apk-android.html
################################################################


A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-vector-icons'.
      > Failed to install the following SDK components:
        [Android SDK Platform 26]
        Please install the missing components using the SDK manager in Android Studio.





You accept license agreements from command line. Navigate to sdkmanager.
~/Library/Android/sdk/tools/bin Than run sdkmanager ./sdkmanager --licenses and accept the licenses you need. You can read more information about sdkmanager here



###############################################################



#################################################################
.android/repositories.cfg could not be loaded. 


create an empty file


################################################################