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 https://github.com/facebook/react-native/pull/3631

Reviewed By: svcscm

Differential Revision: D2575148

Pulled By: nicklockwood

fb-gh-sync-id: 0d0ee9d3b4726aa40bc439bc2f36d1db4cae1147
This commit is contained in:
Andr3wHur5t 2015-10-29 10:56:27 -07:00 committed by facebook-github-bot-3
parent f5b2659f35
commit 22cc044a67
2 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,13 @@ var MapView = React.createClass({
*/ */
showsUserLocation: React.PropTypes.bool, showsUserLocation: React.PropTypes.bool,
/**
* If `false` points of interest won't be displayed on the map.
* Default value is `true`.
* @platform ios
*/
showsPointsOfInterest: React.PropTypes.bool,
/** /**
* If `false` the user won't be able to pinch/zoom the map. * If `false` the user won't be able to pinch/zoom the map.
* Default value is `true`. * Default value is `true`.

View File

@ -37,6 +37,7 @@ RCT_EXPORT_MODULE()
} }
RCT_EXPORT_VIEW_PROPERTY(showsUserLocation, BOOL) RCT_EXPORT_VIEW_PROPERTY(showsUserLocation, BOOL)
RCT_EXPORT_VIEW_PROPERTY(showsPointsOfInterest, BOOL)
RCT_EXPORT_VIEW_PROPERTY(zoomEnabled, BOOL) RCT_EXPORT_VIEW_PROPERTY(zoomEnabled, BOOL)
RCT_EXPORT_VIEW_PROPERTY(rotateEnabled, BOOL) RCT_EXPORT_VIEW_PROPERTY(rotateEnabled, BOOL)
RCT_EXPORT_VIEW_PROPERTY(pitchEnabled, BOOL) RCT_EXPORT_VIEW_PROPERTY(pitchEnabled, BOOL)