0

我最近将 React Native Navigation 添加到我的项目中,React Native Gesture Handler 是我也添加的依赖项之一。从那以后Tried to register two views with the same name RNGestureHandlerButton,尽管没有使用 Expo,我还是会随机出错。作为参考,我在下面的 package.json 中附加了我的依赖项:

    "@react-native-async-storage/async-storage": "^1.14.1",
    "@react-native-community/blur": "^3.6.0",
    "@react-native-community/datetimepicker": "^3.0.9",
    "@react-native-community/masked-view": "^0.1.10",
    "@react-native-community/netinfo": "^6.0.0",
    "@react-native-community/picker": "^1.8.1",
    "@react-native-community/slider": "^3.0.3",
    "@react-navigation/drawer": "^5.10.0",
    "@react-navigation/native": "5.7.1",
    "@react-navigation/stack": "^5.9.0",
    "@storybook/addon-viewport": "^6.0.21",
    "@styled-icons/boxicons-solid": "^10.18.0",
    "@styled-system/prop-types": "^5.1.5",
    "@styled-system/should-forward-prop": "^5.1.5",
    "@svgr/core": "^5.5.0",
    "@svgr/webpack": "^5.5.0",
    "axios": "^0.21.1",
    "babel-plugin-module-resolver": "^4.0.0",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "eslint-plugin-unicorn": "^22.0.0",
    "i18n-js": "^3.8.0",
    "mobx": "^5.0.1",
    "mobx-react": "^6.0.0",
    "mobx-state-tree": "^3.17.2",
    "moment": "^2.29.1",
    "moment-timezone": "^0.5.33",
    "mst-persist": "^0.1.3",
    "react": "^17.0.1",
    "react-native": "0.63.4",
    "react-native-background-timer": "^2.4.1",
    "react-native-calendars": "^1.437.0",
    "react-native-dropdown-picker": "^3.7.0",
    "react-native-elements": "^2.3.2",
    "react-native-fs": "^2.16.6",
    "react-native-gesture-handler": "^1.10.3",
    "react-native-popup-menu": "^0.15.9",
    "react-native-progress": "^4.1.2",
    "react-native-reanimated": "^1.13.0",
    "react-native-responsive-screen": "^1.4.1",
    "react-native-safe-area-context": "^3.1.8",
    "react-native-screens": "^2.11.0",
    "react-native-serial-port-api": "^1.1.0",
    "react-native-sound": "^0.11.0",
    "react-native-system-setting": "^1.7.6",
    "react-native-ui-lib": "^5.20.4",
    "react-native-uuid": "^1.4.9",
    "react-native-vector-icons": "^8.0.0",
    "react-native-virtual-keyboard": "^1.1.0",
    "react-native-walkthrough-tooltip": "^1.2.0",
    "react-native-web": "^0.13.4",
    "styled-components": "^5.1.1",
    "styled-system": "^5.1.5"

在运行“react-native info”时,我得到:

 OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    Memory: 6.45 GB / 15.83 GB
  Binaries:
    Node: 14.11.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK:
      API Levels: 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.3
      System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom
      Android NDK: Not Found
    Windows SDK: Not Found
  IDEs:
    Android Studio: Version  4.1.0.0 AI-201.8743.12.41.6953283
    Visual Studio: Not Found
  Languages:
    Java: javac 15
    Python: 3.8.7
  npmPackages:
    @react-native-community/cli: Not Found
    react: ^17.0.1 => 17.0.2
    react-native: 0.63.4 => 0.63.4
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

如果我能提供任何有助于解决此问题的进一步信息,请告诉我。我正在使用 Windows 的 Android 模拟器上运行这个项目。谢谢!

4

0 回答 0