Add deprecation warning for ViewPagerAndroid (#23395)

Summary:
Add a deprecation warning for the [ViewPagerAndroid](https://facebook.github.io/react-native/docs/viewpagerandroid) module as part of #23313.

[General] [Deprecated] - Deprecated [ViewPagerAndroid](https://facebook.github.io/react-native/docs/viewpagerandroid) as it has now been moved to [react-native-community/viewpager](https://github.com/react-native-community/react-native-viewpager)
Pull Request resolved: https://github.com/facebook/react-native/pull/23395

Differential Revision: D14043025

Pulled By: cpojer

fbshipit-source-id: 2f7988fe69dbeff0f3add9babcb15d7eb974863e
This commit is contained in:
ferrannp 2019-02-12 05:20:32 -08:00 коммит произвёл Facebook Github Bot
Родитель 3c74b6ea34
Коммит 77300ca91c
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -163,6 +163,12 @@ module.exports = {
return require('View');
},
get ViewPagerAndroid() {
warnOnce(
'viewpager-moved',
'ViewPagerAndroid has been extracted from react-native core and will be removed in a future release. ' +
"It can now be installed and imported from '@react-native-community/viewpager' instead of 'react-native'. " +
'See https://github.com/react-native-community/react-native-viewpager',
);
return require('ViewPagerAndroid');
},
get VirtualizedList() {