Learn Simpli

Free Online Tutorial For Programmers, Contains a Solution For Question in Programming. Quizzes and Practice / Company / Test interview Questions.

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.

  1. Javascript will be used to build the react native apps
  2. The normal HTML element will not be supported,
  3. So the react-native provides the special components, and translate them to the instructions the native platforms do understand
  4. Ant the end, the components will be compiled to the real native widgets, real native elements, real native code.
  5. For example, a view component will be converted to both android.view and UIView.
  6. The UI part will be compiled to the native code.
  7. The business logic code will not be compiled to the native code, instead, it runs on special thread hosted by react-native.
  8. The code will be divided into the views and Javascript code.
  9. At the end the Javascript code runs in the special virtual machine, hosted by react-native.