1.

What are threads in General ? and explain Different Threads in ReactNative with Use of Each ?

Answer»

The single sequential flow of control within a program can be controlled by a thread.

React Native right now uses 3 threads:

  • MAIN/UI  Thread — This is the main application thread on which your Android/iOS app is RUNNING. The UI of the application can be CHANGED by the Main thread and it has ACCESS to it .
     
  • Shadow Thread — layout created using React library in React Native can be CALCULATED by this and it is a background thread.
     
  • JavaScript Thread — The main Javascript code is executed by this thread.


Discussion

No Comment Found