mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-08 09:12:05 +08:00
Summary: public This diff extends RCTMap annotations with an `image` and `tintColor` property, which can be used to render completely custom pin graphics. The tintColor applies to both regular pins and custom pin images, allowing you to provide varied pin colors without needing multiple graphic assets. Reviewed By: fredliu Differential Revision: D2685581 fb-gh-sync-id: c7cf0af5c90fd8d1e9b3fec4b89206440b47ba8f
22 lines
706 B
Objective-C
22 lines
706 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <MapKit/MapKit.h>
|
|
|
|
@interface RCTPointAnnotation : MKPointAnnotation <MKAnnotation>
|
|
|
|
@property (nonatomic, copy) NSString *identifier;
|
|
@property (nonatomic, assign) BOOL hasLeftCallout;
|
|
@property (nonatomic, assign) BOOL hasRightCallout;
|
|
@property (nonatomic, assign) BOOL animateDrop;
|
|
@property (nonatomic, strong) UIColor *tintColor;
|
|
@property (nonatomic, strong) UIImage *image;
|
|
|
|
@end
|