WhoBuilt

So You're Considering Brownfield

Oct 8, 2019· 29 min· 574 views·Watch on YouTube

Speaker

Ryan Turner, a React Native core team member and mobile application developer at AutoZone, explains how his team evaluated and adopted brownfield React Native at React Native EU, speaking for the Callstack channel.

Why AutoZone chose brownfield

AutoZone's flagship app had millions of users, but its aging Objective-C and Java codebases were difficult to maintain and extend. The small team had to keep delivering features and meet regulatory changes while improving the app's foundation. A previous greenfield React Native project had shown the team could build features faster, and using React also aligned with tools and skills already present across the company.

Check organizational fit

Turner recommends checking whether the team is ready to own work across Android, iOS, JavaScript tooling, and React Native, and whether the organization supports JavaScript or TypeScript for mobile. Business teams should understand how React Native may affect vendor choices and implementation costs. Shared components, design handoff, and web-oriented tooling can add value, especially in organizations with existing React teams.

Weigh integration against the app you have

The key technical factors are how deeply the new UI and data need to integrate with the existing app. A sound existing architecture makes integration easier even when the feature set is complex; weak architecture and unclear features can make a migration resemble a rewrite with extra integration work. For migration projects, teams should also be able to divide the customer journey into releasable chunks and plan who will support the result in production.

Build the integration in stages

Turner suggests shipping a low-risk UI element first to establish tooling, team practices, and the platform integration. AutoZone spent more than a month working through its bridge and data-sharing approach, using native event emitters and module callbacks to move data in both directions. Because the bridge is asynchronous, teams need to account for app lifecycle events and avoid relying on it for timing-sensitive state updates.

Plan screen migration and upgrades

Map the app's screens, alternate states, data, navigation, and user experience boundaries to identify pieces that can move incrementally. AutoZone had to revise its legacy tab navigation to make that approach workable, and Turner notes that several React Native apps may be embedded in the legacy app during the transition. He also recommends planning regular upgrades, estimating about a week every couple of months to stay current and handle platform changes.

Takeaways

  • Confirm that engineering and business teams are prepared for cross-platform ownership and JavaScript-based mobile development.
  • Assess the existing architecture, feature boundaries, and production support model before committing to brownfield migration.
  • Start with a low-risk screen and use it to establish the integration and data-sharing approach.
  • Map screens and customer journeys so migration work can ship in manageable increments.
  • Budget recurring time for React Native upgrades and platform maintenance.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks