A fintech wallet gets opened on whatever phone people have, and a lot of those phones are several years old. At Personal Pay I was given a challenge: reduce how long our React Native app sits on the splash screen at startup on a low-end Android device. The device was a Galaxy J7 with 2 GB of RAM and 16 GB of storage. If startup felt acceptable there, it would feel fine almost everywhere else.
This post shows the before and after on that device, how I measured it, and what changed in between.
The recording
Same Galaxy J7, same app, two builds: April on the left, September on the right. Each side has a stopwatch that starts when the app is launched.
Reading the stopwatches off the recording:
| Phase | April | September |
|---|---|---|
| Brand splash ends | about 18 s | about 7 s |
| Home screen appears (skeleton) | about 26 s | about 19 s |
The splash phase dropped by roughly 60%, and the home screen shows up about 7 seconds earlier. These are stopwatch readings from a screen recording, so treat them as approximate. The April recording stops when the home skeleton appears, so it has no comparable figure for "home with data loaded".
How I measured
I used three tools, from crude to precise:
- Stopwatch and screen recording. It is the least precise method and the easiest one to explain. Anyone on the team, technical or not, can watch two recordings side by side and see the difference.
- Flashlight. It generates a performance score for an Android app without any setup inside the app, and its
testcommand repeats an end-to-end flow over several iterations. I ran it with Maestro flows so every measurement went through the same steps. - The Android Studio profiler. Flashlight tells you that something is slow. The profiler helps you see where the time goes.
Measuring on the real low-end device mattered more than any single tool. Startup problems that are invisible on a recent phone or an emulator are obvious on a J7.
What changed
The work followed the recommendations in Callstack's The Ultimate Guide to React Native Optimization. The changes that went in:
- Hermes, so the app starts from precompiled bytecode instead of parsing JavaScript on the device.
- Inline requires and RAM bundles, so a module is loaded when it is first used, not at launch.
- Lazy loading of screens and features that are not needed for the first render.
- Navigation optimization, so the app does less work before the first screen is ready.
- MMKV for local storage.
- RTK Query for server data, which removed redundant API requests during startup.
What is still slow
Nineteen seconds to reach the home screen on this device is still a long wait. The recording also shows where the remaining time is. The splash phase more than halved, but the stretch between the end of the splash and the home screen took roughly as long in September as it did in April. That stretch is where I would look next.
Measure on the slowest phone your users actually have. A side-by-side recording with a stopwatch is crude, but it is the artifact that gets everyone, engineers and non-engineers, to agree there is a problem.