Member-only story
Measurement React Native Performance
5 min readJul 23, 2023
I got a task to measure the performance of a specific screen, so I think it will be great if I share it.
Let’s back to the topic, to measure the performance of the application and understand the report result, we should understand how React Native (Old Architecture) works.
How React Native Works
React Native has 3 parallel threads, there are JS Thread, Shadow or Background Thread, and UI Thread.
A step how it works:
- When we run the react native, the Metro will bundle the react code to the javascript code.
- After that, when the JS Thread tries to render the home screen page, it will send the message (JSON) including what views to load to the UI Thread through the Bridge.
- Background Thread (Shadow Thread) will calculate the flexbox layouts and send the result to the UI Thread.

Metro
Acting as a builder, these are the functions:
- Metro has sub-second reload cycles, that perform hot module reloading.
- Act as a bundler, Metro combines all of the…