javascript - 试图注册两个同名的视图RCTScrollView
问题描述
我尝试将我的反应本机应用程序运行到 ios 但我收到了这个错误,而在 android 应用程序工作得很好,有人知道吗?
xcode 11.5,rn 0.61.5,使用 react native cli
我已经在几个网站上搜索但似乎没有找到任何解决方案,这里是屏幕截图:
"dependencies": {
"@microsoft/signalr": "^3.1.3",
"@react-native-community/async-storage": "^1.7.1",
"@react-native-community/datetimepicker": "^2.2.1",
"@react-native-community/masked-view": "0.1.5",
"@react-native-community/picker": "^1.6.1",
"@react-native-community/viewpager": "3.3.0",
"@sentry/react-native": "^1.4.1",
"axios": "^0.19.1",
"color": "^3.1.2",
"ellipsize": "^0.1.0",
"form-data": "^3.0.0",
"google-translate": "^3.0.0",
"i18n-js": "^3.5.1",
"intl": "^1.2.5",
"moment": "^2.24.0",
"moment-range": "^4.0.2",
"numeral": "^2.0.6",
"opentok-react-native": "^0.12.2",
"react": "16.9.0",
"react-cookies": "^0.1.1",
"react-native": "0.61.5",
"react-native-amazing-cropper": "^0.1.1",
"react-native-biometrics": "^2.1.4",
"react-native-camera": "^3.17.0",
"react-native-collapsible": "^1.5.1",
"react-native-daterange-picker": "^1.1.3",
"react-native-device-info": "^5.5.3",
"react-native-file-picker": "0.0.19",
"react-native-geocoder": "^0.5.0",
"react-native-gesture-handler": "^1.5.3",
"react-native-image-crop-tools": "^1.3.4",
"react-native-image-picker": "^2.3.0",
"react-native-localize": "^1.4.0",
"react-native-location": "^2.5.0",
"react-native-masked-text": "^1.13.0",
"react-native-onesignal": "^3.6.3",
"react-native-overlay-section": "0.1.13",
"react-native-paper": "3.4.0",
"react-native-reanimated": "^1.4.0",
"react-native-responsive-screen": "1.4.0",
"react-native-safe-area-context": "0.6.2",
"react-native-screens": "2.0.0-alpha.22",
"react-native-vector-icons": "^6.6.0",
"react-native-webview": "8.1.1",
"react-navigation": "^4.0.10",
"react-navigation-stack": "^2.0.4",
"react-navigation-tabs": "^2.7.0",
"react-redux": "^7.1.3",
"reanimated-bottom-sheet": "1.0.0-alpha.18",
"redux": "^4.0.5",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.3.0",
"sendbird": "3.0.117",
"styled-components": "^4.4.1",
"throttle-debounce": "^2.1.0",
"validator": "^12.1.0"
},
解决方案
抱歉刚刚发现问题,在我的应用程序中有自定义本机库在文件夹 src 中使用滚动视图,导致注册视图两次。
推荐阅读
- php - 使用 php 将文件上传到谷歌驱动器并检索链接?
- sql-server - TSQL - 未捕获的事务不回滚?
- angular - 获取错误由模块“DynamicTestModule”声明的意外值“未定义”
- hostname - 我想通过从主机名(主机名 - dnsdomainname)中减去 dnsdomainname 来使用 shell 脚本查找 IP 地址?
- javascript - 奇怪的 JS 函数“切片”执行流程
- flutter - 无法运行颤振命令
- python - Python函数根据列表内容重复输出
- r - R将一组值与多组值进行比较
- c# - 自定义 SwaggerDocument 生成
- html - 如何使用 php 将表格转换为 DragDrop