Airbnb Jun 19, 2018

Sunsetting React Native

Article Summary

Gabriel Peal from Airbnb shares why they walked away from React Native after 2 years and 80,000 lines of code. The decision wasn't what you'd expect.

In 2018, Airbnb made waves by sunsetting React Native across their entire mobile platform. This candid post-mortem reveals the technical and organizational challenges that led a major tech company to abandon cross-platform development despite 60% of engineers rating their experience as 'amazing.'

Key Takeaways

Critical Insight

Airbnb's React Native experiment succeeded technically in many ways but failed organizationally at their scale, leading them to reinvest fully in native development.

The article includes surprising survey data about engineer satisfaction that contradicts the decision to sunset, plus insights on what's changed since 2018.

About This Article

Problem

Airbnb's engineers wrote 80,000 lines of React Native product code across 220 screens. But that was just a small part of their app. They needed another 40,000 lines of JavaScript infrastructure to handle bridging between platforms.

Solution

Gabriel Peal's team built custom solutions to tackle initialization delays and async-first rendering issues. They created shared element transitions and parallax effects from scratch. Resource constraints meant they couldn't fully solve everything.

Impact

74% of engineers said they'd consider React Native for new projects. Yet Airbnb stopped building new React Native features and moved most of their highest-trafficked screens back to native code by the end of 2018. They planned to phase out support entirely by 2019.

Recent from Airbnb

Related Articles