我将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 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)我该如何解决这个问题?
发布于 2020-11-13 04:33:26
选择器已从“react-本机”安装库@react本地采摘者/采摘者中删除。
取代
import {Picker} from 'react-native';到
import {Picker} from '@react-native-picker/picker';发布于 2020-11-13 03:35:29
现在,没有使用react本机包了,大多数包迁移到了本机社区。对于您的问题,使用以下步骤删除节点模块并使用react本机社区重新安装它,
https://stackoverflow.com/questions/64815052
复制相似问题