I. What is React Native ?
II. HYBRID APPLICATION
III. NATIVE APPLICATION
The application is developed directly in the language of the operating system provided. Ex: iOS is Objective-C, Swift and Android is Java, Window phone is C ++ or C #. Applications written in this language are compiled into the device language on the phone and have all the features that the operating system provides. Because it is a direct language as well as not through any other application, the speed is the fastest.
Speed here includes display speed (smoothness), and processing speed. If you pay close attention you will see native application operations such as page transfer, navigation, and page scrolling all very smooth. With the superior speed of processing, hybrid applications can hardly make heavy graphics applications such as games, although still possible but not smooth, so almost no use for hybrid programming game for mobile phones.
IV. REACT NATIVE
V. REACT NATIVE WORKS
VI. How to set up React native on ubuntu
At part, i will show how to set up React Native on ubuntu as below:
1. Install nodeand npm
- Maybe have alot of people have the same problems when the installation is completed, then they can not run the project because they are not compatible with the version nodejs, so that i want to recommend you to install nvm for manage the version of nodejs in personal computers.
- Install NVM
apt-get update apt-get install build-essential libssl-dev // install nvm curl-o-https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash // reload bash source ~/.bashrc // version nvm --version
- Set up Node
// install latest node nvm install node // set default node version for nvm nvm alias default node // check version of node and npm node -v npm -v
2. Install watchman
Plz follow the comand line below:
git clone https://github.com/facebook/watchman.git cd watchman/ git checkout v4.9.0 sudo apt-get install -y autoconf automake build-essential python-dev libssl-dev libtool ./autogen.sh ./configure make sudo make install
3. Installation android studio
npm install -g react-native-cli
- Create and build an app:
react-native init FirstApp // Move to created project dir. cd FirstApp // Start react-native packager npm start // open up another terminal and run android react-native run-android
For the next part, I will show you how to build and run the first app with React Native.