为什么我应该/不应该升级到本机0.60.0?

Ron*_*ane 3 reactjs react-native react-native-android react-native-ios

当前,react-native已发布了0.60.0版,并且进行了重大更改,但他们在此版本中添加了许多本机支持。

我目前在做3个项目。

First Project Info
- react: 16.0.0-beta.5 => 16.0.0-beta.5
- react-native: 0.49.0 => 0.49.0
this project containes lots of third party libraries and some of them not event maintained by owners.

Second Project Info
- react: 16.6.3 => 16.6.3
- react-native: 0.57.8 => 0.57.8
this project containes 12 third party libraries.

Third Project Info
- react: 16.8.5 => 16.8.5
- react-native: 0.59.2 => 0.59.2
this project containes 7 third party libraries.

Currently, all three projects are working in debug mode (Didn't try Release mode).
now I want to know from the above-mentioned project which one should I migrate to react-native 0.60.0 (Why)?
What if I don't migrate to react-native 0.60.0?
What are the challenges If I migrate to react-native 0.60.0?
Please guide me.
Suggestions are Welcome.

I P*_*ana 5

这是具体的版本时间表,将通过权衡使您的应用受益。

v0.59.x

  • Android 64位,对于Play商店发布是必需的。
  • 反应钩
  • 全新的android javascript核心引擎,使您的应用更加流畅。

v0.60.x

  • 默认情况下,CocoaPods更易于集成第三方库,尤其是本机模块!
  • AndroidX,这会破坏第3方库(即使是更新的库,也需要时间对其进行更新)。
  • Webview并被Geolocation删除。
  • 爱马仕的javascript引擎!启动更快

意见建议

在我看来,尝试升级到0.59是最安全的选择,因为没有它,您将无法在需要64位兼容的应用商店上发布您的应用。0.60可以等待,因为许多库(甚至是较新的库!)仍不支持0.60

  1. 显然,使用0.49进行项目是最难升级的项目,因为有时您需要派生未维护的库并自行修复。
  2. 具有0.57的项目将更容易升级到0.59,因为结构主要没有太大变化。您可以参考https://github.com/react-native-community/rn-diff-purge