diff --git a/Libraries/Components/MapView/MapView.js b/Libraries/Components/MapView/MapView.js index de8aaa9f7..58950c490 100644 --- a/Libraries/Components/MapView/MapView.js +++ b/Libraries/Components/MapView/MapView.js @@ -87,6 +87,13 @@ var MapView = React.createClass({ */ showsPointsOfInterest: React.PropTypes.bool, + /** + * If `false` compass won't be displayed on the map. + * Default value is `true`. + * @platform ios + */ + showsCompass: React.PropTypes.bool, + /** * If `false` the user won't be able to pinch/zoom the map. * Default value is `true`. diff --git a/React/Views/RCTMapManager.m b/React/Views/RCTMapManager.m index 44dd0743e..5372793a8 100644 --- a/React/Views/RCTMapManager.m +++ b/React/Views/RCTMapManager.m @@ -38,6 +38,7 @@ RCT_EXPORT_MODULE() RCT_EXPORT_VIEW_PROPERTY(showsUserLocation, BOOL) RCT_EXPORT_VIEW_PROPERTY(showsPointsOfInterest, BOOL) +RCT_EXPORT_VIEW_PROPERTY(showsCompass, BOOL) RCT_EXPORT_VIEW_PROPERTY(zoomEnabled, BOOL) RCT_EXPORT_VIEW_PROPERTY(rotateEnabled, BOOL) RCT_EXPORT_VIEW_PROPERTY(pitchEnabled, BOOL)