Commit 2b8b18a5 authored by 7c00's avatar 7c00

添加 iOS Marker@clickable 接口

parent d4749e6d
......@@ -58,6 +58,10 @@
[self updateActive];
}
- (void)setClickable:(BOOL)enabled {
self.enabled = enabled;
}
- (void)updateActive {
dispatch_async(dispatch_get_main_queue(), ^{
if (_active) {
......
......@@ -20,6 +20,7 @@ RCT_EXPORT_VIEW_PROPERTY(title, NSString)
RCT_EXPORT_VIEW_PROPERTY(description, NSString)
RCT_EXPORT_VIEW_PROPERTY(active, BOOL)
RCT_EXPORT_VIEW_PROPERTY(draggable, BOOL)
RCT_EXPORT_VIEW_PROPERTY(clickable, BOOL)
RCT_EXPORT_VIEW_PROPERTY(infoWindowEnabled, BOOL)
RCT_EXPORT_VIEW_PROPERTY(zIndex, NSInteger)
RCT_EXPORT_VIEW_PROPERTY(icon, MAPinAnnotationColor)
......
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