idev0085 / react-boilerplate

0 stars 0 forks source link

Explain Different Threads in ReactNative with Use of Each ? #112

Open idev0085 opened 2 years ago

idev0085 commented 2 years ago

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.