Scripting Native App with React Native
There are many reasons why building a native app is more difficult than working on web. One of the main reasons is that we will have to deal with platform specific APIs for Android and iOS separately. Secondly, its harder to lay things on the screen as we often have to manually compute size and position of various views which will slow down our development velocity.
Even though native development takes longer, there are many reasons why we can produce better experience on mobile than on web. Unlike web, Native gives us access to sophisticated threading model which can help us to parallelise our work onto multiple threads. Additionally, native also gives us access to platform-specific UI components, like maps, date pickers, switches, and navigation stacks.
So What is React Native?
How Does React Native Work?
Since React Native is based on React for the Web, they both share common philosophy. React components return markup from their render function which describes how they should look. First part of the below picture depicts how a markup in React is translated directly to browser’s DOM. Whereas in React Native, it is translated to platform specific components through its built-in bridge.