gzp
gzp
我参考了[#571 ]的方案,并在node_modules/react-native-amap3d/lib/ios/MapView/MarkerManager.m 文件下 将 以下三行的**RCTBubblingEventBlock** 替换为了 **RCTDirectEventBlock**,这样我的项目就不在提示错误了,但我并不太懂这样修改的意思,也不清楚会不会有什么副作用,我刚接触 React Native,我希望有一种能避免修改源码的方法,希望有人可以帮忙看看 ```js RCT_EXPORT_VIEW_PROPERTY(onDragStart, RCTDirectEventBlock) RCT_EXPORT_VIEW_PROPERTY(onDrag, RCTDirectEventBlock) RCT_EXPORT_VIEW_PROPERTY(onDragEnd, RCTDirectEventBlock) ```
> 嘿,你可以尝试删除`gradle-wrapper.jar`文件,然后使用 gradle 命令重新创建它。参考这个https://docs.gradle.org/current/userguide/gradle_wrapper.html Thank you for your advice. It helped me solve the problem!