Android react本机选取器在react本机版本0.63.2上不工作
我将react本机版本升级到Android react本机选取器在react本机版本0.63.2上不工作,android,react-native,Android,React Native,我将react本机版本升级到0.63.2。然后我在Android应用程序上遇到了一个问题 Android应用程序显示空屏幕 错误如下: Warning: Picker has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/picker' instead
0.63.2
。然后我在Android应用程序上遇到了一个问题
Android应用程序显示空屏幕
错误如下:
Warning: Picker has been extracted from react-native core and will be removed in a future release.
It can now be installed and imported from '@react-native-community/picker' instead of 'react-native'.
See https://github.com/react-native-community/react-native-picker
ERROR TypeError: Super expression must either be null or a function
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
如何解决此问题?现在,react本机软件包已不再使用,大多数软件包都迁移到react本机社区。对于您的问题,请使用以下步骤删除节点模块,并使用react native community重新安装它
- 反应本机取消链接
- npm取消链接npm
- 卸载--save现在几天内不使用react本机软件包大多数软件包迁移到react本机社区。对于您的问题,请使用以下步骤删除节点模块,并使用react native community重新安装它
- 反应本机取消链接
- npm取消链接npm
- 卸载--save选择器已从“react native”安装库中删除
更换
至import {Picker} from 'react-native';
import {Picker} from '@react-native-picker/picker';
选择器已从“react native”安装库中删除 更换
至import {Picker} from 'react-native';
import {Picker} from '@react-native-picker/picker';
仍然不能在react native@react native picker/picker
上工作。0.63.2
仍然不能在react native@react native picker/picker
上工作。0.63.2