Skip to content

Commit

Permalink
chore: fix warning comments of deprecated modules (#30911)
Browse files Browse the repository at this point in the history
Summary:
Updated some warning messages that shows up when importing deprecated modules to have the updated name space.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[General] [Changed] - Update package name warning of deprecated modules

Pull Request resolved: #30911

Test Plan: Updated link works as expected

Reviewed By: TheSavior

Differential Revision: D26318425

Pulled By: PeteTheHeat

fbshipit-source-id: 74a9909698236e62af8da23644df65c75bb1df11
  • Loading branch information
Naturalclar authored and facebook-github-bot committed Feb 8, 2021
1 parent 81147b6 commit 34e1b0e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ module.exports = {
'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/react-native-masked-view',
'See https://github.com/react-native-masked-view/masked-view',
);
return require('./Libraries/Components/MaskedView/MaskedViewIOS');
},
Expand All @@ -171,7 +171,7 @@ module.exports = {
'picker-moved',
'Picker 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-picker/picker' instead of 'react-native'. " +
'See https://github.com/react-native-picker/react-native-picker',
'See https://github.com/react-native-picker/picker',
);
return require('./Libraries/Components/Picker/Picker');
},
Expand All @@ -181,7 +181,7 @@ module.exports = {
'pickerios-moved',
'PickerIOS 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-picker/picker' instead of 'react-native'. " +
'See https://github.com/react-native-picker/react-native-picker',
'See https://github.com/react-native-picker/picker',
);
return require('./Libraries/Components/Picker/PickerIOS');
},
Expand Down Expand Up @@ -225,7 +225,7 @@ module.exports = {
warnOnce(
'segmented-control-ios-moved',
'SegmentedControlIOS 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/segmented-control' instead of 'react-native'. " +
"It can now be installed and imported from '@react-native-segmented-control/segmented-control' instead of 'react-native'. " +
'See https://github.com/react-native-segmented-control/segmented-control',
);
return require('./Libraries/Components/SegmentedControlIOS/SegmentedControlIOS');
Expand Down Expand Up @@ -312,7 +312,7 @@ module.exports = {
warnOnce(
'clipboard-moved',
'Clipboard 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/clipboard' instead of 'react-native'. " +
"It can now be installed and imported from '@react-native-clipboard/clipboard' instead of 'react-native'. " +
'See https://github.com/react-native-clipboard/clipboard',
);
return require('./Libraries/Components/Clipboard/Clipboard');
Expand Down

0 comments on commit 34e1b0e

Please sign in to comment.