Skip to content


Browse files Browse the repository at this point in the history
Deprecate MapView in favor of airbnb/react-native-maps
Compared to the `<MapView>` that comes with React Native, [react-native-maps]( work on Android and is more feature complete. It is actively maintained and used extensively (9.2k installs / month, see [JS.Coach](

We think now is a good time to switch to react-native-maps in your applications and make `react-native-maps` the official `<MapView>` implementation for React Native.

We are going to release the deprecated `<MapView>` as a separate npm module so you can migrate to `react-native-maps` at your own pace.

**Test Plan**

Checked the docs render correctly on the website:

cd website
npm install
npm start

<img width="696" alt="screenshot 2016-11-01 20 17 31" src="">

Warning is shown:

<img width="423" alt="screenshot 2016-11-01 20 39 21" src="https://cloud.githu
Closes #10500

Differential Revision: D4119602

Pulled By: mkonicek

fbshipit-source-id: 86780a98bf999e6047565ab66a5ebbd15e499a46
  • Loading branch information
Martin Konicek committed Dec 13, 2016
1 parent 3a882c2 commit 5dbdb12
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Libraries/Components/MapView/MapView.js
Expand Up @@ -54,8 +54,7 @@ export type AnnotationDragState = $Enum<{

* **IMPORTANT: This component is now DEPRECATED and will be removed
* in January 2017 (React Native version 0.42). This component only supports
* iOS.**
* in React Native version 0.42. This component only supports iOS.**
* **Please use
* [react-native-maps]( by Airbnb
Expand Down Expand Up @@ -86,6 +85,19 @@ export type AnnotationDragState = $Enum<{

const MapView = React.createClass({

componentWillMount: function() {
'MapView is now deprecated and will be removed from React Native in version 0.42. ' +
'Please use the react-native-maps module which is more feature complete ' +
'and works on Android too:\n' +
'It is actively maintained and used extensively.\n\n' +
'Once MapView is removed from React Native in v0.42, we will release the ' +
'code as deprecated-react-native-ios-mapview. You will be able to ' +
'continue using that and migrate to react-native-maps your own pace later.\n\n' +
'For more info, check out'

mixins: [NativeMethodsMixin],

propTypes: {
Expand Down

0 comments on commit 5dbdb12

Please sign in to comment.