The theme of React Native is to “Learn once, write everywhere”. Let’s explore what this theme represents.
- “Learn once”
- “Write everywhere”
This statement signifies the fact that React Native can be used to code for any mobile platform making it exceedingly powerful. It also shows the power of re-usability of code that allows developers who are coding for one platform to import a major chunk of their code to a separate platform without having to make significant changes to the code base.
It was built as a high level, interpretive language for front end development to build interactive websites, and was developed by Brendan Eich who was also the co-founder of the Mozilla foundation.
History of React Native:
In 2012, Mark Zuckerberg, the CEO of Facebook noted that their bet on HTML had not worked and that Native technology was the way forward. He promised that Facebook would soon provide a better mobile experience.
In 2015, Facebook officially launched React Native and revealed that they had been using the technology in their Group app as well as their Ads manager app successfully.
A few additional Pros of React Native:
- Cross-platform Development: Not only can code be created for both platforms simultaneously but the components of code used for one platform can be reused separately for the other platform.
- Fast performance: React Native uses both CPU and GPU of the mobile to render on the display which helps increase the speed/performance of the application.
- Web development: Yeah, sounds unreal but React Native can be used to make web apps. It is still not mainstream but the implications are that a developer can create an application on every platform (Android, iOS, and the web) with reusable components.