Skip to content

Commit

Permalink
Remove MaskedViewIOS from react-native-github
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sokolnickim authored and facebook-github-bot committed Jul 23, 2022
1 parent 000bbe8 commit a67360b
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 341 deletions.
13 changes: 0 additions & 13 deletions Libraries/Components/MaskedView/MaskedViewIOS.android.js

This file was deleted.

93 changes: 0 additions & 93 deletions Libraries/Components/MaskedView/MaskedViewIOS.ios.js

This file was deleted.

21 changes: 0 additions & 21 deletions Libraries/Components/MaskedView/RCTMaskedViewNativeComponent.js

This file was deleted.

40 changes: 0 additions & 40 deletions Libraries/Components/MaskedView/__tests__/MaskedViewIOS-test.js

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions React/Views/RCTMaskedView.h

This file was deleted.

34 changes: 0 additions & 34 deletions React/Views/RCTMaskedView.m

This file was deleted.

12 changes: 0 additions & 12 deletions React/Views/RCTMaskedViewManager.h

This file was deleted.

26 changes: 0 additions & 26 deletions React/Views/RCTMaskedViewManager.m

This file was deleted.

25 changes: 15 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import typeof Image from './Libraries/Image/Image';
import typeof ImageBackground from './Libraries/Image/ImageBackground';
import typeof InputAccessoryView from './Libraries/Components/TextInput/InputAccessoryView';
import typeof KeyboardAvoidingView from './Libraries/Components/Keyboard/KeyboardAvoidingView';
import typeof MaskedViewIOS from './Libraries/Components/MaskedView/MaskedViewIOS';
import typeof Modal from './Libraries/Modal/Modal';
import typeof Pressable from './Libraries/Components/Pressable/Pressable';
import typeof ProgressBarAndroid from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
Expand Down Expand Up @@ -145,15 +144,6 @@ module.exports = {
return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
.default;
},
get MaskedViewIOS(): 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-masked-view/masked-view' instead of 'react-native'. " +
'See https://github.com/react-native-masked-view/masked-view',
);
return require('./Libraries/Components/MaskedView/MaskedViewIOS');
},
get Modal(): Modal {
return require('./Libraries/Modal/Modal');
},
Expand Down Expand Up @@ -736,4 +726,19 @@ if (__DEV__) {
);
},
});
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
* attempting to access MaskedViewIOS. */
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
* attempting to access MaskedViewIOS. */
Object.defineProperty(module.exports, 'MaskedViewIOS', {
configurable: true,
get() {
invariant(
false,
'MaskedViewIOS has been removed from React Native. ' +
"It can now be installed and imported from '@react-native-community/react-native-masked-view' instead of 'react-native'. " +
'See https://github.com/react-native-masked-view/masked-view',
);
},
});
}
2 changes: 1 addition & 1 deletion packages/rn-tester/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ SPEC CHECKSUMS:
React-RCTTest: 06c388632dc7b30df17af01c8f9e89e641b4d31c
React-RCTText: a861fbf2835299d3cc4189697cddd8bd8602afb9
React-RCTVibration: 0386f50996a153b3f39cecbe7d139763ac9a9fdf
React-rncore: 6daa27c74047a9e13ce3412b99660274a5780603
React-rncore: 2a6ad37560e94cf7ff32e3f2ae1e708491b4c1f3
React-runtimeexecutor: 97dca9247f4d3cfe0733384b189c6930fbd402b7
ReactCommon: 6cef8ed13ee2a9d7d4cf9660dbe6dd2ea6ba7104
ScreenshotManager: 71d047abd38a77310985b87f8136b620c5c61e88
Expand Down

0 comments on commit a67360b

Please sign in to comment.