小编st1*_*123的帖子

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

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

import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs';
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
Run Code Online (Sandbox Code Playgroud)
Attempted import error: 'EasingNode' is not exported from 'react-native-reanimated'.
Run Code Online (Sandbox Code Playgroud)

Attempted import error: 'Appearance' is not exported from 'react-native-web/dist/index'.
Run Code Online (Sandbox Code Playgroud)

以下是我的 package.json:

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@react-native-community/async-storage": "^1.11.0",
    "@react-native-community/masked-view": "0.1.10",
    "@react-navigation/material-bottom-tabs": "^5.2.16",
    "@react-navigation/material-top-tabs": "^5.2.16",
    "@react-navigation/native": "^5.7.3",
    "@react-navigation/stack": "^5.9.0",
    "@reduxjs/toolkit": "^1.4.0",
    "expo": "~38.0.8", …
Run Code Online (Sandbox Code Playgroud)

react-native react-native-ios react-navigation react-navigation-stack react-navigation-v5

6
推荐指数
1
解决办法
4025
查看次数