Supercharging Discord Mobile: Our Journey to a Faster App (opens in new tab)
Discord leverages React and React Native to maintain high development velocity across desktop and mobile platforms while navigating the performance constraints of cross-platform frameworks. After initially avoiding React Native for Android due to hardware limitations, the company transitioned its client in 2022 by utilizing the Hermes JavaScript engine and targeting improved device capabilities. This strategic shift has allowed for significant efficiency gains, including a 50% reduction in median startup times as the team shifts focus toward optimizing experiences for power users. ### Cross-Platform Development and Android Transition * Discord uses React for desktop and React Native for mobile to allow unified feature shipping across platforms. * The company originally delayed adopting React Native on Android to avoid performance degradation on a wide range of hardware. * The formal transition to React Native for Android occurred in 2022, spurred by the introduction of Hermes, a JavaScript engine optimized for React Native. ### Performance Optimization and Efficiency * React Native introduced specific trade-offs, particularly regarding startup times on lower-end Android devices. * Discord’s engineering team successfully halved median startup times throughout 2023 through focused architectural improvements. * Current development efforts are prioritizing performance for "power users" who push the app's limits, ensuring stability and speed for high-intensity use cases. Discord’s journey highlights that while cross-platform frameworks like React Native require rigorous optimization—especially on Android—the trade-off for development speed and feature parity is increasingly viable through modern tools like the Hermes engine.