小编Shu*_*uru的帖子

错误不变违规:无法调用 JavaScript 模块方法 AppRegistry.runApplication()

我正在尝试在我的 Android 模拟器中运行其他人的反应本机项目。安装所有依赖项并复制并粘贴 src 文件夹后,我收到此错误,我不知道该怎么做,因为我已经尝试解决此问题 2 天了。`

 ERROR  Error: Failed to initialize react-native-reanimated library, make sure you followed installation steps here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/
1) Make sure reanimated's babel plugin is installed in your babel.config.js (you should have 'react-native-reanimated/plugin' listed there - also see the above link for details)
2) Make sure you reset build cache after updating the config, run: yarn start --reset-cache, js engine: hermes
 ERROR  Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been …
Run Code Online (Sandbox Code Playgroud)

javascript android typescript babeljs react-native

5
推荐指数
1
解决办法
3万
查看次数

标签 统计

android ×1

babeljs ×1

javascript ×1

react-native ×1

typescript ×1