From 42308b3eb284afd01ac4b26e0c4d869044882d84 Mon Sep 17 00:00:00 2001 From: 7c00 Date: Tue, 5 Sep 2017 00:09:16 +0800 Subject: [PATCH] Fix #56 --- components/maps/Marker.js | 2 +- example/src/examples/marker.js | 1 - ios/AMapMarker.m | 3 --- package.json | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/components/maps/Marker.js b/components/maps/Marker.js index 74954461..ccf1e464 100644 --- a/components/maps/Marker.js +++ b/components/maps/Marker.js @@ -115,7 +115,7 @@ export default class Marker extends BaseComponent { /** * 信息窗体点击事件 * - * Android 在使用自定义 View 时,该事件会失效,这时候可以用 Touchable* 代替 + * 注意,对于自定义信息窗体,该事件是无效的 */ onInfoWindowPress: React.PropTypes.func, } diff --git a/example/src/examples/marker.js b/example/src/examples/marker.js index 235d5f95..4ac6238f 100644 --- a/example/src/examples/marker.js +++ b/example/src/examples/marker.js @@ -59,7 +59,6 @@ export default class MarkerExample extends Component { /> diff --git a/ios/AMapMarker.m b/ios/AMapMarker.m index 7be6b07a..e5e615e1 100644 --- a/ios/AMapMarker.m +++ b/ios/AMapMarker.m @@ -94,9 +94,6 @@ - (void)setMapView:(AMapView *)mapView { - (void)_handleTap:(UITapGestureRecognizer *)recognizer { _active = YES; [self updateActive]; - if (self.onInfoWindowPress) { - self.onInfoWindowPress(nil); - } } - (BOOL)active { diff --git a/package.json b/package.json index 293196f2..5f5d99db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-amap3d", - "version": "0.6.0", + "version": "0.6.1", "description": "react-native 高德地图组件", "author": "Qiu Xiang ", "license": "MIT",