Tokopedia Digital Khrisna Oct 19, 2021

How Do We Improve Our Most Important Page on iOS App

Article Summary

Tokopedia's homepage was crashing on millions of iOS devices. The culprit? React Native couldn't keep up with their scale.

The Tokopedia iOS team rebuilt their most critical page from scratch, moving from React Native to native Swift. This case study breaks down their architecture decisions, performance optimizations, and the dramatic results.

Key Takeaways

Critical Insight

Tokopedia cut their homepage load time in half and achieved buttery smooth performance by ditching React Native for native iOS.

The team reveals why their sticky tab implementation and mosaic layout required native code that hybrid frameworks simply couldn't deliver.

About This Article

Problem

As Tokopedia's homepage expanded, React Native's bridge became a bottleneck. The app rendered inefficiently and burned through CPU resources, making it nearly unusable on older devices like the iPhone 5.

Solution

Digital Khrisna's team rewrote the homepage in native Swift. They used AsyncDisplayKit for layout and IGListKit to manage the dynamic channel components that refresh hourly.

Impact

The native version hit 40-55fps during scrolling stress tests. Even iPhone 4S devices could run it without the white blank page that appeared in the React Native version.