首页 > 解决方案 > React native version updating not working

问题描述

I tried to update my "React-native" version to 0.59.0 from 0.57.8, but it is not updating.

react-native upgrade 0.59.0-rc.0 this command is using for updating, but after updating am getting the response as Successfully upgraded this project to react-native v0.57.8. Also, cross-check with the package file, it shows the old react-native version.

标签: reactjsreact-native

解决方案


有一个很棒的工具叫做 rn-diff-purge (请不要被这个名字所迷惑,它不会做任何类型的清除?)。该工具的作用是比较不同版本的 react-native,并从源代码级别向您展示差异。通过查看差异,您可以对构建进行相应的更改。这取决于您使用的库的数量,但初始构建可能会立即成功或显示一些错误。然后你可以一一处理这些错误。

到目前为止,我已经使用该工具升级了 3 次 react-native,从 30 分钟到 1 小时完成了升级。

https://github.com/pvinis/rn-diff-purge/compare/version/0.58.6..version/0.59.0


推荐阅读