Skip to content

Commit

Permalink
Fix #56
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Sep 4, 2017
1 parent 731b48a commit 42308b3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/maps/Marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class Marker extends BaseComponent {
/**
* 信息窗体点击事件
*
* Android 在使用自定义 View 时,该事件会失效,这时候可以用 Touchable* 代替
* 注意,对于自定义信息窗体,该事件是无效的
*/
onInfoWindowPress: React.PropTypes.func,
}
Expand Down
1 change: 0 additions & 1 deletion example/src/examples/marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export default class MarkerExample extends Component {
/>
<Marker
color='green'
onInfoWindowPress={this._onCustomInfoWindowPress}
coordinate={this._coordinates[1]}>
<TouchableOpacity activeOpacity={0.9} onPress={this._onCustomInfoWindowPress}>
<View style={styles.customInfoWindow}>
Expand Down
3 changes: 0 additions & 3 deletions ios/AMapMarker.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ - (void)setMapView:(AMapView *)mapView {
- (void)_handleTap:(UITapGestureRecognizer *)recognizer {
_active = YES;
[self updateActive];
if (self.onInfoWindowPress) {
self.onInfoWindowPress(nil);
}
}

- (BOOL)active {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-amap3d",
"version": "0.6.0",
"version": "0.6.1",
"description": "react-native 高德地图组件",
"author": "Qiu Xiang <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit 42308b3

Please sign in to comment.