Commit 42308b3e authored by 7c00's avatar 7c00

Fix #56

parent 731b48ad
......@@ -115,7 +115,7 @@ export default class Marker extends BaseComponent {
/**
* 信息窗体点击事件
*
* Android 在使用自定义 View 时,该事件会失效,这时候可以用 Touchable* 代替
* 注意,对于自定义信息窗体,该事件是无效的
*/
onInfoWindowPress: React.PropTypes.func,
}
......
......@@ -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}>
......
......@@ -94,9 +94,6 @@
- (void)_handleTap:(UITapGestureRecognizer *)recognizer {
_active = YES;
[self updateActive];
if (self.onInfoWindowPress) {
self.onInfoWindowPress(nil);
}
}
- (BOOL)active {
......
{
"name": "react-native-amap3d",
"version": "0.6.0",
"version": "0.6.1",
"description": "react-native 高德地图组件",
"author": "Qiu Xiang <i@7c00.cc>",
"license": "MIT",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment