-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Deprecate MapView in favor of airbnb/react-native-maps #10500
Conversation
By analyzing the blame information on this pull request, we identified @caabernathy and @spikebrehm to be potential reviewers. |
71cca6f
to
7cb3eeb
Compare
Exciting! |
How about making it so that if you use this class, a warning gets logged? |
What do people have to do to make this warning go away - just |
Yes that will work, but probably only at version >= 0.42 where we remove the native code. If people install Ideally people would migrate to react-native-maps to make the warning go away. But I see your point the warning can be annoying and you'd just like to make it go away. We have other deprecation warnings like this in the codebase though - maybe their point is to always be visible until you fix the code? |
Updated the warning message 👍 |
Looks good. Not sure if the travis error is spurious - I'll try rebuilding. Once CI is clear let's shipit. |
@facebook-github-bot import |
@mkonicek has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@lacker Sandcastle confirms this breaks some screenshot tests (probably by showing the warning :)). I'll fix that. |
@lacker Should be good to go now, tests passed. |
@facebook-github-bot shipit |
Summary: Compared to the `<MapView>` that comes with React Native, [react-native-maps](https://github.com/airbnb/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](https://js.coach/react-native/react-native-maps?search=react-native-maps)). 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="https://cloud.githubusercontent.com/assets/346214/19905831/480074b8-a070-11e6-8779-8e12343c2883.png"> 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
Summary: Compared to the `<MapView>` that comes with React Native, [react-native-maps](https://github.com/airbnb/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](https://js.coach/react-native/react-native-maps?search=react-native-maps)). 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="https://cloud.githubusercontent.com/assets/346214/19905831/480074b8-a070-11e6-8779-8e12343c2883.png"> Warning is shown: <img width="423" alt="screenshot 2016-11-01 20 39 21" src="https://cloud.githu Closes facebook#10500 Differential Revision: D4119602 Pulled By: mkonicek fbshipit-source-id: 86780a98bf999e6047565ab66a5ebbd15e499a46
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 toreact-native-maps
at your own pace.Test Plan
Checked the docs render correctly on the website:
Warning is shown:
Published the module separately (https://github.com/facebookarchive/react-native-deprecated-modules, will also publish to npm in January) so people can continue using it and migrate to Airbnb maps at their own pace. Linked the module to a sample app using
react-native link
, it works 🎉