Context
This was the 2021 to 2022 performance pass on an ed-tech company's React Native learner app. I was the lead implementer, working alongside teammates.
The problem
The app started slowly and lists janked on low-end Android phones.
What I did
I turned on Hermes in 2021 and moved the design-system theme mapping to build time, so a large theme JSON was not processed on every launch.
I swapped the storage layer from AsyncStorage to MMKV.
I added render gating on about 97 screens, so a screen shows only what it needs first.
I ported the lists to FlashList.
Key decision
The rule I used was to move work from app start to build time. Precomputing the theme mapping cost a build step, but removed work from every launch.
Result
Cold start went from 8 seconds to 1 second, and list scrolling from 30 to over 50 frames a second, on low-end Android.
What I learned
If I did it again, I would store the measurements next to the change.
Stack
- React Native
- Hermes
- MMKV
- FlashList
- Babel
