From a4f772f5f79914a01e7d7807788763708cd8929f Mon Sep 17 00:00:00 2001 From: Ben Hoyt Date: Mon, 13 Jun 2016 12:37:41 -0700 Subject: [PATCH] Note that MapView is not yet available on Android Summary: The MapView component is not labelled as iOS-only, but it is. It took me a bit of digging to figure out that the Android source code hasn't been released. Found it in this [SO answer](http://stackoverflow.com/questions/32625259/no-view-manager-defined-for-class-rctmap) in the end, and it is documented [here](http://facebook.github.io/react-native/docs/known-issues.html#views), but it'd be nice if it said that directly in the MapView docs. (The mention of the Android-specific prop `active` put me off the trail for a bit.) Closes https://github.com/facebook/react-native/pull/7361 Differential Revision: D3426119 fbshipit-source-id: 7bd210373a223a5dd756d3f095c6d1a3d8788b03 --- Libraries/Components/MapView/MapView.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Libraries/Components/MapView/MapView.js b/Libraries/Components/MapView/MapView.js index be15531ced..b554585c6e 100644 --- a/Libraries/Components/MapView/MapView.js +++ b/Libraries/Components/MapView/MapView.js @@ -35,6 +35,15 @@ export type AnnotationDragState = $Enum<{ ending: string; }>; +/** + * A component for displaying embeddable maps and annotations using the native + * iOS MKMapView class. The Android version is not currently available in the + * open source React Native project, but you can use Leland Richardson's + * cross-platform and more feature-complete + * [react-native-maps](https://github.com/lelandrichardson/react-native-maps) + * instead. + */ + const MapView = React.createClass({ mixins: [NativeMethodsMixin],