reactnativecn / react-native-website

React Native 中文网
https://reactnative.cn
MIT License
216 stars 327 forks source link

集成的iOS项目中,加载main.jsbundle,报错RNGestureHandlerModule.attachGestureHandler was called with 2 arguments but expects 3 arguments. #767

Closed li-qingnan closed 5 months ago

li-qingnan commented 8 months ago

集成的iOS项目中,加载main.jsbundle,报错RNGestureHandlerModule.attachGestureHandler was called with 2 arguments but expects 3 arguments. RNGestureHandler 版本为 2.9.0,不知道是和其他的那个依赖没有匹配上。 请问如何找到匹配的版本,解决这个冲突? IMG_0313

ios端使用的是这个方法加载的, NSURL *url = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; self.rctRootView = [[RCTRootView alloc] initWithBundleURL:url moduleName:@"taroDemo" initialProperties:@{} launchOptions:nil];

react-native info info Fetching system and libraries information... System: OS: macOS 14.0 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 336.00 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 16.13.0 path: /usr/local/bin/node Yarn: version: 1.22.19 path: /usr/local/bin/yarn npm: version: 8.1.0 path: /usr/local/bin/npm Watchman: Not Found Managers: CocoaPods: version: 1.13.0 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:

sunnylqm commented 8 months ago

yarn why react-native-gesture-handler 或者 npm ls react-native-gesture-handler 看下有哪个库依赖了不同版本的react-native-gesture-handler

github-actions[bot] commented 5 months ago

👋 Hey there, it looks like there has been no activity on this issue in the last 90 days. Has the issue been fixed, or does it still require the community attention? This issue will be closed in the next 7 days if no further activity occurs. Thank you for your contributions.