React Native

8 Notes
+ Difference between ReactNative and Cordova (Feb. 14, 2020, 3:55 p.m.)

The primary difference between React Native and Cordova based apps is that Cordova based apps run inside a webview while React Native apps render using native views. React Native apps have direct access to all the Native APIs and views offered by the underlying mobile OS. Thus, React Native apps have the same feel and performance as that of a native application.

+ Installation (June 19, 2018, 4:15 p.m.)

1- Install Nodejs (Refer to NodeJs topic in my notes) 2- sudo npm install -g react-native-cli 3- Configure Android development environment using my notes, in Android category.

+ Start project and running it (Oct. 11, 2018, 4:30 p.m.)

1- react-native init my_project 2- cd my_project 3- react-native start (in a shell) 4- react-native run-android (in another shell)

+ Run gradlew for debugging (Oct. 11, 2018, 5:59 p.m.)

cd to "android" folder inside your react native project: ./gradlew installDebug --debug ./gradlew installDebug --stacktrace

+ Gradle Repositories (Oct. 12, 2018, 12:27 p.m.)

http://repo.metova.com/nexus/content/groups/public/com/

+ Gradle Socks5 (Oct. 18, 2018, 7:55 p.m.)

Add the following line to gradle.properties: org.gradle.jvmargs=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=1080

+ Google's Maven Repository (Oct. 18, 2018, 8:10 p.m.)

https://dl.google.com/dl/android/maven2/index.html

+ Watchman - Installation (Oct. 18, 2018, 9:41 p.m.)

https://facebook.github.io/watchman/docs/install.html 1- apt install libtool-bin automake autotools-dev 2- git clone https://github.com/facebook/watchman.git 3- cd watchman 4- git checkout v4.9.0 # the latest stable release 5- ./autogen.sh 6- ./configure 7- make 8- sudo make install