When React Native Make Sense?
Tags: reactnative, webdev, javascript
Published: 2020-04-24 11:22:24

<p>I wrote this article to answer one of the most frequently asked questions while talking about React Native on business meetings: </p>
<p><i>"What makes RN the best option for my app?"</i></p>
<p>I've decided to take a while and make research, together with our developers, to find out when React Native is an actual good technology choice.</p>
<p><a href="https://github.com/facebook/react-native">React Native</a> is an open-source framework to build mobile apps with <a href="https://reactjs.org/">React</a>.</p>
<p>The whole aim of RN is to <strong>make it easier for cross-platform development</strong>, as you don’t have to develop iOS, Android and Windows separately. </p>
<p>All you need is one codebase to <a href="https://pagepro.co/react-native-development.html">create an awesome app</a> that works on all operating systems.</p>
<p>However, we all know cross-platform development has cons in comparison with native apps.</p>
<p>So, when does it make sense to use React Native?</p>
<h2><b>When your app is following regular design principles</b></h2>
<img src="https://pagepro.co/blog/wp-content/uploads/2020/02/classic.png" alt="a phone with an app in a classic style">
<p>I have to admit that the great thing about native development is that it’s doing better with apps that are very demanding design-wise.</p>
<p>But let’s be honest. <strong>We don’t need any complex designs and extreme interactions</strong>, or animations to make things happen and <strong>make people click a purchase button. </strong></p>
<p>We can be still great with a regular, minimalistic “look and feel”, <strong>as long as we fix our customers’ problem</strong> with the speed and efficiency they expect. No fancy design needed. </p>
<p>Of course, fun interactions can improve user-experience at some point, but in most cases, <strong>instead of spending money on two native developers</strong> that need a lot of time (and probably a help of designer) to make it happen, you can just <strong>use React Native and get a great user-minded interface</strong>, that will just make your app efficient.</p>
<p>More than that, thanks to a great community and modularity, <strong>you can easily use many ready-to-use projects or components</strong> that already has a proven record for being efficient.</p>
<p>Last, but not least, technology is constantly moving and changing. Don’t forget that <a href="https://pagepro.co/blog/2019/11/15/reasons-to-use-react-in-2020/">many things we take for granted today, was considered impossible two years ago.</a></p>
<p>I personally believe that React Native is a great tool for 95% of B2B mobile apps and 60% B2C mobile apps.</p>
<h2><b>When you want to release iOS and Android apps at the same time</b></h2>
<img src="https://pagepro.co/blog/wp-content/uploads/2020/01/1vs1-1024x704.png" alt="android and apple logo against react logo">
<p>Let’s get back to the moment I wrote: <i>“instead of spending money on two native developers…”. </i></p>
<p>If you’re going to be releasing your app on both Android and iOS, React Native will prove helpful as <strong>you’ll be able to repurpose a lot of your code rather than having to start from scratch</strong> on each platform. </p>
<p>That’ll save you both time and money, and allows you to go out with a MVP sooner.</p>
<p>More than that,  it’s going to be <strong>quicker to train iOS and Android (or any other) team in React</strong> than to train new iOS or Android developers separately.</p>
<h2><b>When you want to cut development time</b></h2>
<img src="https://pagepro.co/blog/wp-content/uploads/2020/02/time.jpg" alt="a clock standing on laptop with a lot of code on the screen">
<p>This is not related to the previous point. </p>
<p>I’m talking here about the <strong>overall development experience of creating apps</strong> with React Native. Big players already learned that development is just easier and more productive with it. </p>
<p>For example, <a href="https://engineering.shopify.com/blogs/engineering/react-native-future-mobile-shopify">Shopify went full gas with switching from native development to React Native</a>. </p>
<p>What they discover? </p>
<p><i>"[…]in rewriting the Arrive app in React Native, the team felt that they were twice as productive than using native development—even just on one mobile platform."</i></p>
<h2><b>When you don’t want  to double or triple your dev team</b></h2>
<img src="https://media.giphy.com/media/p6Yr8mO7mJblC/giphy.gif" alt="agent smith from Matrix is cloning" width="800"/>
<p>Speaking of developer’s productivity, would you like <strong>one guy to make one app that works on both mobile and web</strong>? </p>
<p>Can do. </p>
<p>React Native is a subset of React, and as long as you are not using any modules that need typical native functionalities, you can build an app that will work on both mobile and web platforms with the similar UI.</p>
<h2><b>When you don’t have many animations</b></h2>
<img src="https://pagepro.co/blog/wp-content/uploads/2020/02/comic.jpg" alt="a raw hand draft of an app">
<p>React Native is there to help you create truly native experiences, as it allows JavaScript code to interact with native components via a mechanism known as the bridge. </p>
<p>Although, the bridge does cause issues when it comes to things like animations. </p>
<p>As React Native is open-source, it’s constantly improving as third parties are busy building solutions that benefit everyone. Plus, Facebook is working on changes to improve Bridge performance. </p>
<p>However, finally, <strong>someone has to do those animations</strong>, which means you need another person in your team, and it won’t be quick, nor cheap, but this you need to calculate yourself. </p>
<p>If <strong>animations are not crucial</strong> to run your business, there is just no one reason to go for native development.</p>
<h2><b>Points for using React Native</b></h2>
<img src="https://pagepro.co/blog/wp-content/uploads/2020/02/points.jpg" alt="darts in the middle of a dart board">
<p>If you’re still not sure if React Native makes sense, here are some benefits for you to keep in mind. If you’re looking for:</p>
<ul><li>Quicker development times</li><li>Smaller development teams</li><li>Quicker regression tests</li><li>Bugs that get fixed easier</li><li>Easy and intuitive interface</li><li>Access to many ready-to-use templates and modules</li><li><a href="https://pagepro.co/blog/2020/01/16/how-react-native-can-cut-your-development-costs/">Development cost-efficiency </a></li></ul>
<p>…then, React Native makes sense to you.</p>
<h2><b>Conclusion</b></h2>
<p>In fact, there is not much to be added in the conclusion, as it seems to be very obvious: </p>
<ul><li>If you are a big company, or a game, that has a wish to use complicated and demanding designs, or interactions, that can afford two different developers and a designer at the same time - go native.</li><li>Other - go for React Native. <strong>Your business will be more than fine.</strong></li></ul>