diff --git a/Libraries/Components/MapView/MapView.js b/Libraries/Components/MapView/MapView.js index 5b5a31282632c2..91be99397369c5 100644 --- a/Libraries/Components/MapView/MapView.js +++ b/Libraries/Components/MapView/MapView.js @@ -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](https://github.com/airbnb/react-native-maps) by Airbnb @@ -86,6 +85,19 @@ export type AnnotationDragState = $Enum<{ const MapView = React.createClass({ + componentWillMount: function() { + console.warn( + '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: https://github.com/airbnb/react-native-maps\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 https://github.com/facebook/react-native/pull/10500' + ); + }, + mixins: [NativeMethodsMixin], propTypes: {