安装React本地选择器时错误

发布于 2025-01-30 13:10:02 字数 1853 浏览 1 评论 0 原文

我升级 react-native 版本为“ 0.68.2 ”和 basten-base ^3.2.1 “。然后,我在Android应用程序上遇到了问题。

Android应用程序显示警告:不变违规:Picker已从React Native中删除。现在可以从“@react-native-picker/picker”而不是“ react-native”安装和导入它。 https://github.com/react-native-picker/picker/picker

参见 我面临错误的库,但没有安装:

npm install @react-native-picker/picker --save

错误如下:

npm警告Eresolve覆盖同行依赖性NPM在解决时警告: undefined@Undefined NPM警告发现: node_modules/@fortawesome/react-native-nponawesome npm警告
@fortawesome/Root Project中的React-native-native-fontawesome@“^0.2.7” NPM警告49多(@miblanchard/react-native-slider,...)NPM警告 NPM警告无法解决依赖性:NPM警告同行 反应@“^0.56.0”来自
Root Project NPM ERR中的React-Native-native-native-cardView@“^2.0.5”!代码 eresolve npm err! ERESOLVE无法解决NPM ERR! npm err!尽管 解决方案:[email protected] npm ERR! node_modules/react-nati

I upgraded react-native version to "0.68.2" and native-base version to "^3.2.1". Then I have a problem on Android app.

Android app show Warning: Invariant Violation: Picker has been removed from React Native. It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. See https://github.com/react-native-picker/picker

while installing this library I faced errors and it doesn't installed :

npm install @react-native-picker/picker --save

The error is as following:

npm WARN ERESOLVE overriding peer dependency npm WARN While resolving:
undefined@undefined npm WARN Found: [email protected] npm WARN
node_modules/react-native npm WARN peer react-native@"> 0.57" from
@fortawesome/[email protected] npm WARN
node_modules/@fortawesome/react-native-fontawesome npm WARN
@fortawesome/react-native-fontawesome@"^0.2.7" from the root project
npm WARN 49 more (@miblanchard/react-native-slider, ...) npm WARN
npm WARN Could not resolve dependency: npm WARN peer
react-native@"^0.56.0" from [email protected] npm WARN
node_modules/react-native-cardview npm WARN
react-native-cardview@"^2.0.5" from the root project npm ERR! code
ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While
resolving: [email protected] npm ERR! Found:
[email protected] npm ERR! node_modules/react-nati

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文