Javascript 找不到模块';react native reanimated/plugin';从/projectFolder

Javascript 找不到模块';react native reanimated/plugin';从/projectFolder,javascript,react-native,babeljs,react-native-router-flux,react-native-reanimated,Javascript,React Native,Babeljs,React Native Router Flux,React Native Reanimated,我想使用react native router flux,所以我添加了文档中描述的依赖项。我还为babel.config.js中的react native reanimated添加了babel插件依赖项,如下所示: module.exports={presets:['module:metro-react-native-babel preset'],插件:['react-native-reanimated/plugin'],} 但是现在我在metro服务器中遇到了这个错误: 错误:index.js

我想使用
react native router flux
,所以我添加了文档中描述的依赖项。我还为
babel.config.js
中的
react native reanimated
添加了babel插件依赖项,如下所示:

module.exports={presets:['module:metro-react-native-babel preset'],插件:['react-native-reanimated/plugin'],}

但是现在我在metro服务器中遇到了这个错误:

错误:index.js:无法从“/home/nia/Downloads/YarAb”中找到模块“react native reanimated/plugin”


我的react原生版本是0.63.2

不幸的是,expo sdk v38还不支持Reactimated v2,因为

react-native reanimated v2中也记录了此问题:“expo支持尚未就绪,下一个sdk版本将支持react-native 0.62–这将允许您在弹出的expo应用程序中使用reanimated 2。”

目前唯一的解决方案是要么弹出你的expo应用程序以使用reanimated,要么寻找类似的


请包括您的源代码。哪种源代码?babel.cofig.js?导入
react native reanimated/plugin
时是否会出现此错误?