Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phone gap vs React Native [closed]

I'm embarking on a side project. Its a native hybrid app. I've used Phonegap / Ionic / Angular a lot to build apps quickly. I'm researching React Native at the moment. Has anyone who's used both of these have any comments or +/- about each one?

like image 746
Joel Avatar asked Oct 22 '15 16:10

Joel


People also ask

Is React Native declining?

This question has created a lot of buzz in the field of mobile app development platforms. Part reason for the decline in React Native's popularity is due to the emergence of Google-backed Flutter that slowly but gradually started gaining wider acceptance among developers and clients alike.

Is it worth it to learn React Native for mobile application development in 2021?

Definitely. The experience in creating applications using native technologies can for example help in application distribution or working with mobile devices in general. However, creating both the user interface and business code in JavaScript may require a slight change of mindset.

Why React Native is not popular?

The number one drawback to React Native is performance. It is better than other hybrid tools and web apps, but there's no getting around the large overhead framework that slows down performance when measured against native apps.


1 Answers

I've used both extensively. We have been using React Native in production for about 5 months now, and have previously worked with Ionic / Angular, and Phonegap projects for 3 years.

Here are the pros and cons of React Native, in my opinion, from someone who has fairly extensive experience in both. I'm not going to go into Ionic since you already have some experience there.

React Native Cons:

  1. New technologies that you have to learn (React if you haven't already used it, Android environment & understanding of Xcode)
  2. New data architecture and frameworks (Redux/Mobx/Flux/Reflux/etc...)
  3. Fairly new and documentation is still coming along but not completely there yet (Though the community is amazing at helping answer questions)
  4. Learning how to style React Native is just similar enough to CSS to get you in trouble and frustrate you in the beginning

React Native Pros:

  1. Very fast development time
  2. Amazing user experience when loaded on device (true native feel in my experience vs hybrid)
  3. Hot reloading
  4. Flux & similar data architecture (once you learn and understand it)
  5. Fun to build once you learn it
  6. Not a steep learning curve
  7. Amazing community

If I were to meet someone and recommend one over the other I would definitely recommend React Native. That being said, PhoneGap / Cordova and Ionic are all still very solid and if you feel productive and are not in the position to spend some time learning a new technology, I would say stick with one of those.

like image 93
Nader Dabit Avatar answered Oct 02 '22 13:10

Nader Dabit