- Download and install Android Studio - Click here for setup
- Install Node
sachin@sachin-E470:~$ sudo apt install nodejs-legacy
sachin@sachin-E470:~$sudo apt-get install -y nodejs
sachin@sachin-E470:~$ node -v
v4.7.2
- install NPM
- Install react Native CLI
sachin@sachin-E470:~$ sudo npm install -g react-native-cli
- Java Setup
sachin@sachin-E470:~$ sudo apt-get install lib32stdc++6 lib32z1 openjdk-8-jdk
Already set below ANDROID_HOME and PATH:
sachin@sachin-E470:~$ echo $ANDROID_HOME
/home/sachin/Android/Sdk
sachin@sachin-E470:~$ echo $PATH
/home/sachin/.gem/ruby/2.3.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/bin:/home/sachin/Android/Sdk/tools:/home/sachin/Android/Sdk/platform-tools
- Create and Run project
sachin@sachin-E470:~/react-native$ react-native init MyFirstReactNative && cd MyFirstReactNative
sachin@sachin-E470:~/react-native/MyFirstReactNative$ react-native run-android
sachin@sachin-E470:~/react-native/MyFirstReactNative$ npm run start
No comments:
Post a Comment