Discord Nov 7, 2019

How Discord Achieves Native iOS Performance with React Native

Article Summary

Discord runs millions of MAU on iOS with just 3 core engineers. Their secret? React Native—but only after a brutal performance overhaul.

When Discord's iOS app became nearly unusable on iPhone 6s despite once running smoothly on iPhone 5s, they formed a mobile performance squad. This deep-dive chronicles their systematic hunt through Flux stores, React components, main thread bottlenecks, gestures, and bundle loading.

Key Takeaways

Critical Insight

Through five optimization phases, Discord achieved consistent 60 FPS, slashed battery drain, and cut initial load time by over 2 seconds while maintaining their React Native foundation.

The team almost went fully native for lists before discovering they'd already solved the problem once before on web.

Recent from Discord

Related Articles