How to convince your boss to use React Native

Likely you landed on this article because you are excited about React Native. Awesome! If you have a team of web engineers and a brand new app, it’s easy to make a case for starting with React Native.

However, most companies already have apps in the stores. They used native stack to build their apps: Xcode or Android Studio. React Native can add value for these companies too, but making a hybrid app comes with some challenges.

During the last 4 years I helped integrate React Native into Facebook and Oculus apps. Here are a few lessons I learned.

Start with Empathy

Wait, start with what?

Understand the people who work on your project—that’s the first step to successful integration.

Your boss (project manager, director, CTO, etc.) is responsible for the app hitting the market with little risk, short timeline and maximum impact. Companies already operate in very competitive environment. To them any new technology is a risk.

Your colleagues have a different perspective as well. They have experience building apps with the “native” technology stack. They know how to format strings, build UIs, access network, write and debug code in the IDE. Switching to a completely different ecosystem is very uncomfortable. There’s natural resistance to getting out of the comfort zone.

Does React Native have layout inflaters? How do I change the text of this button?

Engineers might have existing opinions about React, React Native and JavaScript ecosystem. Or they’ve seen a React Native app somewhere and found it of bad quality. There are many common myths, e.g. “JS is slow”, or “frameworks come and go too fast”.

These myths are not specific to JavaScript. As humans we can’t experience every single tech stack and have a well-formed opinion. We have to rely on things we’ve heard from others.

This might not sound very encouraging, but be willing to accept a defeat. There are so many scenarios where React Native can be very beneficial. But there are also valid situations where it doesn’t make sense at a particular time. And it’s okay. Maybe in a few months you can revisit this decision. The last thing you want is to polarize your team and ruin constructive work relationships.

To fight existing misconceptions, prove them wrong on a real feature inside your app (without making other people feel stupid).

Find value

This guide assumes you are integrating React Native into an existing application and already have a big chunk of functionality written using platform-dependent code. Rewriting it all is a huge risk with very little benefit to your users and business. That’s why it will be extremely hard to convince your team and people responsible for the project to do so.

But you don’t have to rewrite your application! React Native can be adopted incrementally.

Find an area in your application that will immediately get benefits from being implemented in React Native. For example, it could be a screen that is useful but but doesn’t get much development attention or a surface that’s implemented as a WebView. For example, Facebook started with Pokes, Instagram rebuilt “liked photos”, etc.

It has to be with a scope that you can build yourself within few days. It will be a great campground to test different aspects of integration: build system, session sharing, logging, crash reporting, etc.

Bonus points for making the new feature run on both iOS and Android. Suddenly, something that used to take a lot of engineering time and coordination, was created by one person in a short time frame.

Show, don’t tell.

Be a champion 

You can’t just say “Let’s use React Native” and hide in the bushes.

TC39, a committee that evolves JavaScript the language, has the following process: Changes to the language are called “proposals”. A member that leads a proposal is called a “champion”. Their mission is to create spec drafts, work with the community and push the spec forward.

Become the React Native champion at your company. Take the responsibility to see this idea through.

The first step to becoming a champion is to get more familiar with React Native. Create a few prototypes (by rebuilding some parts of your app), learn architecture, be ready to give demos and help people get started.

Engineers who are coming from native will most likely feel uncomfortable and overwhelmed by the new ecosystem. Create an environment where getting started with React Native is super easy:

Super important: if there are people who don’t want to deal with React Native, make sure their development experience is not compromised. They should be able to work the same way as before without having to know or do anything about React Native.

Closing thoughts

If you want to convince somebody to use React Native, ship a feature in your app that wouldn’t have been possible without it.

I hope this small guide gives you few ideas on how to get started. It’s only the beginning.

Lots of big and small companies use React Native in their hybrid apps. Unfortunately, very few of them share the details. I think it’s mostly because some aspects of the integration are specific to their infrastructure and it doesn’t feel useful to talk about these.

But there are many common things. I hope to follow-up this blog post with “How to scale React Native at your organization”.

Hi! My name is Alex. I’m a software engineer at Facebook, where I work on React Native, Oculus and Messenger. I love thinking about development experience.

I write about programming, software design and side projects Subscribe