Closed 1291862631 closed 3 months ago
尝试对@ant-design/react-native 版本进行降级,解决了我的问题 将"@ant-design/react-native": "^5.0.4", 修改为"@ant-design/react-native": "5.0.4",该问题就没有了,对"react-native-gesture-handler": "^2.14.0", 进行降级没有作用,如果需要使用ant-design 5.1.0 的新特性,降级后能正常使用了在进行升级。这是我解决该问题的方法
fixed in v5.1.1
💬 Before You Start
🙋 Description/Step to reproduce
"@ant-design/react-native": "^5.1.0", "react-native-gesture-handler": "^2.14.0", 问题1: 源码
报错信息
Invariant Violation: requireNativeComponent: "GestureHandlerRootView" was not found in the UIManager.
我在App.tsx 中添加了
问题2: 源码![image](https://github.com/ant-design/ant-design-mobile-rn/assets/43429390/df3fd6df-d1f2-4efe-a465-5b1d05bd33cd)
错误信息:![656312c432d7695e993e2fa96711c22](https://github.com/ant-design/ant-design-mobile-rn/assets/43429390/1a71bef7-bfbd-4934-b65c-c5bda4a0f15c)
package.json
💻 Environment
Android
⚫️ Output of
npx react-native info
OS: Windows 11 10.0.22621 CPU: (20) x64 Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz Memory: 32.50 GB / 47.84 GB Binaries: Node: version: 18.17.0 path: D:\nodejs\node.EXE Yarn: version: 1.22.19 path: D:\nodejs\node_global\yarn.CMD npm: version: 10.5.0 path: D:\ReactNativeProject\wisdomapp_customization\node_modules.bin\npm.CMD Watchman: Not Found SDKs: Android SDK: API Levels:
Additional comments
No response