Flipkart Talha Naqvi Nov 30, 2020

The Journey of React-Native @ Flipkart

Article Summary

Talha Naqvi from Flipkart reveals how React Native cut their A/B testing cycles in half while serving 100M+ users. The secret? Strategic compromises and custom infrastructure.

Flipkart, India's largest e-commerce platform with 400M weekly visits, adopted React Native in 2016 to solve a critical problem: building features three times (web, Android, iOS) was killing productivity. This deep dive shares their 4-year journey, including what worked, what didn't, and the custom tools they built.

Key Takeaways

Critical Insight

Flipkart successfully scaled React Native across their entire mobile stack by setting clear performance targets, building custom infrastructure for OTA updates, and strategically keeping performance-critical screens native.

Their multi-widget framework and approach to server-driven layouts reveals an architecture pattern most teams haven't considered.

About This Article

Problem

Flipkart's React Native Android apps were loading pages slower than native versions. On Snapdragon 625 processors, launch times fell behind by 300-500ms.

Solution

Flipkart stopped rebuilding React Instance Managers every time users switched between sections. Instead, they reused the same managers and started running React instances in the background before users actually navigated to React Native pages. This cut down on JS parsing overhead.

Impact

The performance improvements let Flipkart meet their targets and use React Native on more pages. They kept the homepage fully native because of launch time limits, but expanded React Native to other areas of the app.