出现“试图注册两个同名的视图 RNCViewpager

问题描述

enter image description here

嗨,我收到错误消息,但我不知道如何解决。 我认为这是由 react-native-tab-view 和 react-native-pager-view 之间的冲突引起的

我试过了

  • 删除 node_modules 并重新安装。
  • 安装了不同版本的 react-native-pager-view
  • 在 package.json 中添加了“分辨率”。

我的 package.json 是

  "dependencies": {
    "@invertase/react-native-apple-authentication": "^2.1.2","@react-native-community/blur": "^3.6.0","@react-native-community/geolocation": "^2.0.2","@react-native-community/masked-view": "^0.1.10","@react-native-community/toolbar-android": "0.1.0-rc.2","@react-native-firebase/analytics": "^11.3.2","@react-native-firebase/app": "^11.3.2","@react-native-google-signin/google-signin": "^6.0.0","@react-navigation/bottom-tabs": "^5.11.8","@react-navigation/native": "^5.9.3","@react-navigation/stack": "^5.14.3","dateformat": "^3.0.3","filter-obj": "^2.0.2","lodash": "^4.17.15","lottie-ios": "^3.1.8","lottie-react-native": "^3.5.0","moment": "^2.29.1","patch-package": "^6.2.2","payment": "^2.3.0","react": "17.0.1","react-content-loader": "^6.0.3","react-native": "0.64.1","react-native-background-upload": "^5.6.1","react-native-base64": "0.0.2","react-native-bootsplash": "^2.2.4","react-native-check-Box": "^2.1.7","react-native-checkBox-form": "^1.1.5","react-native-checkBox-group": "^1.0.3","react-native-credit-card-input-fullpage": "^0.2.0","react-native-device-info": "^8.0.5","react-native-dialog": "^5.6.0","react-native-drawer-layout-polyfill": "^2.0.0","react-native-fbsdk": "^1.1.2","react-native-gesture-handler": "^1.10.3","react-native-google-places-autocomplete": "^1.8.0","react-native-image-picker": "^2.3.3","react-native-key-value-storage": "^3.1.0","react-native-keyboard-accessory": "^0.1.12","react-native-loading-spinner-overlay": "^1.1.0","react-native-material-buttons": "^0.6.0","react-native-material-textfield": "^0.16.1","react-native-no-flicker-image": "^1.0.2","react-native-pager-view": "^5.1.3","react-native-paper": "^4.7.2","react-native-phone-input": "^0.2.4","react-native-picker-select": "^8.0.4","react-native-ratings": "^7.4.0","react-native-reanimated": "^1.10.1","react-native-responsive-screen": "^1.4.1","react-native-safe-area-context": "^0.7.3","react-native-screens": "^2.10.1","react-native-scrollable-tab-view": "^1.0.0","react-native-section-list-get-item-layout": "^2.2.3","react-native-secure-storage": "^0.1.2","react-native-simple-radio-button": "^2.7.4","react-native-star-rating": "^1.1.0","react-native-super-grid": "^3.2.0","react-native-svg": "^12.1.1","react-native-swipe-gestures": "^1.0.5","react-native-tab-view": "^3.0.1","react-native-vector-icons": "^7.0.0","react-native-version-check": "^3.4.2","react-native-webview": "^10.3.3","react-native-windows": "^0.62.4","react-navigation": "^4.4.0","react-navigation-drawer": "^2.5.0","react-navigation-material-bottom-tabs": "^2.3.0","react-navigation-stack": "^2.8.2","string": "^3.3.3","tipsi-stripe": "^7.5.3","typescript": "^3.9.7"   },"devDependencies": {
    "@babel/core": "^7.12.9","@babel/runtime": "^7.12.5","@react-native-community/eslint-config": "^2.0.0","babel-jest": "^26.6.3","eslint": "^7.14.0","jest": "^26.6.3","jetifier": "^1.6.6","metro-react-native-babel-preset": "^0.64.0","react-native-dotenv": "0.2.0","react-test-renderer": "17.0.1"   },"jest": {
    "preset": "react-native"   } 
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...