mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Added ability to use a custom view for MapView annotations
Summary: public This diff adds the ability to specify a custom React component (aka view) to be displayed as a MapView pin. This makes it possible to use remote images (using an <Image/> component), or text (using a <Text/> component), or anything else. One consequence of this is that MapView can no longer support arbitrary subviews. To place views in front the map, add them to a separate container view. Reviewed By: tadeuzagallo Differential Revision: D2764790 fb-gh-sync-id: e16b44e866c2d76c76b0cb35ef9eefbfc68d6719
This commit is contained in:
committed by
facebook-github-bot-6
parent
97c75cf5a4
commit
f9dfb90a35
@@ -17,5 +17,9 @@
|
||||
@property (nonatomic, assign) BOOL animateDrop;
|
||||
@property (nonatomic, strong) UIColor *tintColor;
|
||||
@property (nonatomic, strong) UIImage *image;
|
||||
@property (nonatomic, assign) NSInteger viewIndex;
|
||||
@property (nonatomic, assign) NSInteger leftCalloutViewIndex;
|
||||
@property (nonatomic, assign) NSInteger rightCalloutViewIndex;
|
||||
@property (nonatomic, assign) NSInteger detailCalloutViewIndex;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user