Closed lblblong closed 7 months ago
可能是一些 peerDependencies
没有安装。
yarn add rc-field-form react-native-safe-area-context react-native-svg
复现这个问题的时候发现采用 npm
管理依赖会出现一些奇怪的问题(@fruits-chain/react-native-xiaoshu 目录下的 node_modules 里面存在不同版本的 react-native,导入 @fruits-chain/react-native-xiaoshu 就会红屏报错),推荐使用 yarn
。
确实换成 yarn 就可以了 👍
报错 Invariant Violation: Module AppRegistry is not a registered callable module