mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 14:48:25 +00:00
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:
parent
3c74b6ea34
commit
77300ca91c
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user