Skip to content

Commit 4ac65f5

Browse files
FonDornfacebook-github-bot
authored andcommitted
Add deprecation warning for MaskedViewIOS (#23398)
Summary: Add a deprecation warning for the [MaskedViewIOS](https://facebook.github.io/react-native/docs/maskedviewios) module as part of #23313. [General] [Deprecated] - Deprecated [MaskedViewIOS](https://facebook.github.io/react-native/docs/maskedviewios) as it has now been moved to [react-native-community/masked-view](https://github.com/react-native-community/react-native-masked-view) Pull Request resolved: #23398 Differential Revision: D14045290 Pulled By: cpojer fbshipit-source-id: e97230f6861cf35ee0b49376d0a5c9c47d4e99f8
1 parent 7b33d6b commit 4ac65f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Libraries/react-native/react-native-implementation.js

+6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ module.exports = {
7474
return require('ListView');
7575
},
7676
get MaskedViewIOS() {
77+
warnOnce(
78+
'maskedviewios-moved',
79+
'MaskedViewIOS has been extracted from react-native core and will be removed in a future release. ' +
80+
"It can now be installed and imported from '@react-native-community/masked-view' instead of 'react-native'. " +
81+
'See https://github.com/react-native-community/react-native-masked-view',
82+
);
7783
return require('MaskedViewIOS');
7884
},
7985
get Modal() {

0 commit comments

Comments
 (0)