电话差距与 React Native [英] Phone gap vs React Native

查看:26
本文介绍了电话差距与 React Native的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在着手一个副项目.它是一个原生的混合应用程序.我经常使用 Phonegap/Ionic/Angular 来快速构建应用程序.我目前正在研究 React Native.有谁使用过这两种方法的人对每一种都有任何评论或 +/- 吗?

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?

推荐答案

我广泛使用了这两种方法.我们已经在生产中使用 React Native 大约 5 个月了,之前已经与 Ionic/Angular 和 Phonegap 项目合作了 3 年.

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.

在我看来,以下是 React Native 的优缺点,来自在这两个方面都有相当丰富经验的人.我不打算进入 Ionic,因为您已经在那里有一些经验.

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 缺点:

  1. 你必须学习的新技术(如果你还没有使用过,请反应一下,Android 环境和对 Xcode 的理解)
  2. 新的数据架构和框架(Redux/Mobx/Flux/Reflux/等...)
  3. 相当新的文档和文档仍在出现,但尚未完全实现(尽管社区在帮助回答问题方面非常出色)
  4. 学习如何设置 React Native 的样式与 CSS 非常相似,一开始会让你陷入困境并让你感到沮丧

React Native 优点:

  1. 非常快的开发时间
  2. 在设备上加载时的惊人用户体验(我的体验与混合体验中真正的原生感觉)
  3. 热重载
  4. 通量和类似的数据架构(一旦你学习并理解它)
  5. 学完即会构建起来很有趣
  6. 不是一个陡峭的学习曲线
  7. 很棒的社区

如果我遇到某人并推荐其中一个,我肯定会推荐 React Native.话虽如此,PhoneGap/Cordova 和 Ionic 仍然非常可靠,如果您觉得很有效率并且没有时间花一些时间学习新技术,我会说坚持其中之一.

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.

这篇关于电话差距与 React Native的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆