React-Native has released by Facebook for android and after 6 months Facebook released an IPhone version. Developers are happy to hear that it’s have great code re-usability and single code is used for both android as well as IOS. It’s a Open Source.
Who are using React-Native?
If you are curious to know who is using react-native. There is thousands of application running android & IOS but some are more popular which are following.
- Facebook Ads Manager
- Tencent QQ.
- Baidu Mobile.
- CBS Sports Franchise Football.
- Sound Cloud Plus.
- CBS Sports Franchise.
Advantage of React-Native.
1. Platform independent.
2. Reusable Components.
React-Native is more popular because of it’s Component Re-usability These component will work for both android as well as IOS. React-Native component are reusable because it’s building blocks are directly compiled in native. The React-Native app will have the good speed, look, and functionality. The people who started react-Native, can reuse components with following steps.
- Pass data via props.
- Nest Component
- Use Higher Order Component (HOC)
3. React-Native compatible with third party plugin, uses less memory, hot reloading, and smoother experience.
Third party plugin can be easily used in react-native. For example:- If you want to use google map, you can add google map plugin. React-Native lets link you native module plugin. Same you can integrate login with email, Facebook, LinkedIn, QQ. There is lots of third party plugin available and can be link with react-native.
4. Learn once, write anywhere.
“Learn once, write anywhere” is simple approach of Facebook with React Native. Reactjs is very similar to React-Native which is used for web application basically used for single page application. So learning once, helpful to develop application for android, IOS as well as web based application.
But rest assured, if you have learned IOS and android, didn’t waste of time. It is also very useful when developing application with react-native. because sometime want to implement some functionality which is not yet implement in React-Native.
6. More predictable coding
7. Declarative style
The another key of popular react-native that is declarative style. Developers can write the code which is more readable, flexible, and reusable. Flex property makes React-Native style more efficient.