reactjs 错误类型错误:(0,_reactNative.requireNativeComponent)不是函数

g52tjvyc  于 2022-11-04  发布在  React
关注(0)|答案(1)|浏览(178)

我正面临这个错误,我怎么能修复这个问题,我正在使用expo react本机错误说

`Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.       
 ERROR  TypeError: (0, _reactNative.requireNativeComponent) is not a function. (In '(0, _reactNative.requireNativeComponent)('RNCAndroidDialogPicker')', '(0, _reactNative.requireNativeComponent)' is undefined)
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause 
of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.  
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause 
of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.  `

我已经尝试重新启动我的项目和应用程序,但它不为我工作,这是我的项目,我已经从github,所以我不知道由于依赖这个错误是来找我
我不知道,但以前我面临的错误不变违反:ViewPropTypes已从React Native中删除。迁移到从'deprecat from 'deprecated-react-native-prop-types '导出的ViewPropTypes。错误,因此当我遵循该解决方案后,此错误将出现

2q5ifsrm

2q5ifsrm1#

很明显,您使用的是一个实现自定义类的库。您需要离开Expo Go并开始使用Expo-Dev-Client:https://docs.expo.dev/development/getting-started/

相关问题