Skip to content

Commit a67360b

Browse files
sokolnickimfacebook-github-bot
authored andcommitted
Remove MaskedViewIOS from react-native-github
Summary: Remove MaskedViewIOS from react-native-github, update deprecation warnings, rebuild CocoaPods. Changelog: [General][Removed] - Remove MaskedViewIOS Reviewed By: lunaleaps Differential Revision: D37860775 fbshipit-source-id: 963b4b9891eecf5610cfad1e93ac8bf83f29f521
1 parent 000bbe8 commit a67360b

File tree

11 files changed

+16
-341
lines changed

11 files changed

+16
-341
lines changed

Libraries/Components/MaskedView/MaskedViewIOS.android.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

Libraries/Components/MaskedView/MaskedViewIOS.ios.js

Lines changed: 0 additions & 93 deletions
This file was deleted.

Libraries/Components/MaskedView/RCTMaskedViewNativeComponent.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

Libraries/Components/MaskedView/__tests__/MaskedViewIOS-test.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

Libraries/Components/MaskedView/__tests__/__snapshots__/MaskedViewIOS-test.js.snap

Lines changed: 0 additions & 77 deletions
This file was deleted.

React/Views/RCTMaskedView.h

Lines changed: 0 additions & 14 deletions
This file was deleted.

React/Views/RCTMaskedView.m

Lines changed: 0 additions & 34 deletions
This file was deleted.

React/Views/RCTMaskedViewManager.h

Lines changed: 0 additions & 12 deletions
This file was deleted.

React/Views/RCTMaskedViewManager.m

Lines changed: 0 additions & 26 deletions
This file was deleted.

index.js

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import typeof Image from './Libraries/Image/Image';
2121
import typeof ImageBackground from './Libraries/Image/ImageBackground';
2222
import typeof InputAccessoryView from './Libraries/Components/TextInput/InputAccessoryView';
2323
import typeof KeyboardAvoidingView from './Libraries/Components/Keyboard/KeyboardAvoidingView';
24-
import typeof MaskedViewIOS from './Libraries/Components/MaskedView/MaskedViewIOS';
2524
import typeof Modal from './Libraries/Modal/Modal';
2625
import typeof Pressable from './Libraries/Components/Pressable/Pressable';
2726
import typeof ProgressBarAndroid from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
@@ -145,15 +144,6 @@ module.exports = {
145144
return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
146145
.default;
147146
},
148-
get MaskedViewIOS(): MaskedViewIOS {
149-
warnOnce(
150-
'maskedviewios-moved',
151-
'MaskedViewIOS has been extracted from react-native core and will be removed in a future release. ' +
152-
"It can now be installed and imported from '@react-native-masked-view/masked-view' instead of 'react-native'. " +
153-
'See https://github.com/react-native-masked-view/masked-view',
154-
);
155-
return require('./Libraries/Components/MaskedView/MaskedViewIOS');
156-
},
157147
get Modal(): Modal {
158148
return require('./Libraries/Modal/Modal');
159149
},
@@ -736,4 +726,19 @@ if (__DEV__) {
736726
);
737727
},
738728
});
729+
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
730+
* attempting to access MaskedViewIOS. */
731+
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
732+
* attempting to access MaskedViewIOS. */
733+
Object.defineProperty(module.exports, 'MaskedViewIOS', {
734+
configurable: true,
735+
get() {
736+
invariant(
737+
false,
738+
'MaskedViewIOS has been removed from React Native. ' +
739+
"It can now be installed and imported from '@react-native-community/react-native-masked-view' instead of 'react-native'. " +
740+
'See https://github.com/react-native-masked-view/masked-view',
741+
);
742+
},
743+
});
739744
}

0 commit comments

Comments
 (0)