DEV Community

wiz
wiz

Posted on

Why should I use react native for mobile app development ?

I know React already, hence I am thinking of developing an application in native. I am not sure whats the pros/cons of choosing that over android/java ?

I need some help on:

  1. Understanding those pros/cons ?
  2. How can I maintain my application in a long run ?
  3. Resources to delve more into native
  4. Are there any better options than native ? (heard of capacitor ??)

Thanks!

Top comments (3)

Collapse
 
crimsonmed profile image
Médéric Burlet

It depends mostly what you want to do.

1 Pros and Cons

Going native means that if you want to launch on ios and android you have two code base. In the sense it will be two projects to handle and keep updated. However going native means much smaller apps in size and much better optimization.

React native has to incorporate the javascript engine which is heavy hence an app would be already few hundred meg. For react native and android you can use the Hermes Engine to enable better performance:
hermesengine.dev/

2 Maintain your app

Well that is mostly organizational problem. Have a proper workflow make sure that the ios and android have same release. Don't release a new feature on one platform and then postpone it on the other.

3 Ressources

no idea here as well i'm not a fan of double the amount of work (having two apps).

4 Better solution

If you are willing to go for it I recommend flutter. It is much more optimized than React Native and has better perfs. However it is not in javascript but in Dart.

flutter.dev/

I think it also depends the goal of the app. If you look at Expo which you can use for react native they offer access to many api to handle billing and more.

docs.expo.io/versions/latest/sdk/o...

If you wanna build a game forget about react native for instance.

Collapse
 
wiz profile image
wiz

Thats insightful and exactly what I want to know.
Thanks

Collapse
 
afrazs profile image
afrazs

Bro possible having a look at this post? dev.to/afrazs/epub-reader-for-reac...