Skip to content

Commit

Permalink
Add deprecation warning for MaskedViewIOS (#23398)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
FonDorn authored and facebook-github-bot committed Feb 12, 2019
1 parent 7b33d6b commit 4ac65f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Libraries/react-native/react-native-implementation.js
Expand Up @@ -74,6 +74,12 @@ module.exports = {
return require('ListView'); return require('ListView');
}, },
get MaskedViewIOS() { get MaskedViewIOS() {
warnOnce(
'maskedviewios-moved',
'MaskedViewIOS 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/masked-view' instead of 'react-native'. " +
'See https://github.com/react-native-community/react-native-masked-view',
);
return require('MaskedViewIOS'); return require('MaskedViewIOS');
}, },
get Modal() { get Modal() {
Expand Down

0 comments on commit 4ac65f5

Please sign in to comment.