reactjs - 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.
解决方案
有一个很棒的工具叫做 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
推荐阅读
- meshlab - 如何在 MeshLab 中将 3d 模型垂直于其表面展开?
- node.js - 如何解决 Adonis 应用程序启动时的崩溃?
- swift - WKWebView 保留自己
- node.js - 为什么我的 AWS Lambda 节点 JS 应用程序无法访问我的 MongoDB Atlas 集群?
- node.js - Nodemailer,服务器上的 sendMail 方法 - 无响应,无错误
- javascript - 是否可以使用 React JS 将 AdminLTE 的悬停子菜单功能更改为 onClick 功能
- java - 根据环境变量处理 Maven 中不同版本的依赖项
- jsonschema - 使用 OpenAPI 和 JSON-Schema 根据查询参数创建所需的属性
- python - 使用 Python 抓取网页时绕过 cookie 协议页面
- angular - 将控制台错误检测为错误并使测试失败