How do react-native works
In this chapter, you will learn about how does react-native works. In the last chapter, we studied what is react native. Now its time to learn about how does react-native works.
- Javascript will be used to build the react native apps
- The normal HTML element will not be supported,
- So the react-native provides the special components, and translate them to the instructions the native platforms do understand
- Ant the end, the components will be compiled to the real native widgets, real native elements, real native code.
- For example, a view component will be converted to both android.view and UIView.
- The UI part will be compiled to the native code.
- The business logic code will not be compiled to the native code, instead, it runs on special thread hosted by react-native.
- The code will be divided into the views and Javascript code.
- At the end the Javascript code runs in the special virtual machine, hosted by react-native.