Skip to content

Commit 22cc044

Browse files
Andr3wHur5tfacebook-github-bot-3
authored andcommitted
Added support for toggling POI visibility on iOS map view.
Summary: Adds support for toggling points of interests visibility on iOS map view; resolving #3244 Closes facebook/react-native#3631 Reviewed By: svcscm Differential Revision: D2575148 Pulled By: nicklockwood fb-gh-sync-id: 0d0ee9d3b4726aa40bc439bc2f36d1db4cae1147
1 parent f5b2659 commit 22cc044

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Libraries/Components/MapView/MapView.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ var MapView = React.createClass({
8080
*/
8181
showsUserLocation: React.PropTypes.bool,
8282

83+
/**
84+
* If `false` points of interest won't be displayed on the map.
85+
* Default value is `true`.
86+
* @platform ios
87+
*/
88+
showsPointsOfInterest: React.PropTypes.bool,
89+
8390
/**
8491
* If `false` the user won't be able to pinch/zoom the map.
8592
* Default value is `true`.

React/Views/RCTMapManager.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ - (UIView *)view
3737
}
3838

3939
RCT_EXPORT_VIEW_PROPERTY(showsUserLocation, BOOL)
40+
RCT_EXPORT_VIEW_PROPERTY(showsPointsOfInterest, BOOL)
4041
RCT_EXPORT_VIEW_PROPERTY(zoomEnabled, BOOL)
4142
RCT_EXPORT_VIEW_PROPERTY(rotateEnabled, BOOL)
4243
RCT_EXPORT_VIEW_PROPERTY(pitchEnabled, BOOL)

0 commit comments

Comments
 (0)