尝试导入错误:“ EasingNode”未从“ react-native-reanimated”导出

时间:2020-08-16 21:18:42

标签: react-native react-navigation react-native-ios react-navigation-stack react-navigation-v5

我在我的博览会应用程序中使用@ react-navigation / stack,并且一切正常。我想开始向应用中添加标签/抽屉导航,并在尝试导入时继续遇到以下2个错误

current_sum
import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs';
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';

Attempted import error: 'EasingNode' is not exported from 'react-native-reanimated'.

以下是我的package.json:

Attempted import error: 'Appearance' is not exported from 'react-native-web/dist/index'.

我已经竭尽全力创建了一个新的expo应用程序来解决此问题,但是导入底部/顶部标签导航器后,我仍然碰壁。知道如何解决这个问题吗?

1 个答案:

答案 0 :(得分:2)

react-native-paper降级为4.0.0-alpha.1解决了我的问题。似乎expo@38.0.0react-native-paper@^4.0.1不兼容。