Skip to content

Commit 34e1b0e

Browse files
Naturalclarfacebook-github-bot
authored andcommitted
chore: fix warning comments of deprecated modules (#30911)
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
1 parent 81147b6 commit 34e1b0e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ module.exports = {
159159
'maskedviewios-moved',
160160
'MaskedViewIOS has been extracted from react-native core and will be removed in a future release. ' +
161161
"It can now be installed and imported from '@react-native-masked-view/masked-view' instead of 'react-native'. " +
162-
'See https://github.com/react-native-masked-view/react-native-masked-view',
162+
'See https://github.com/react-native-masked-view/masked-view',
163163
);
164164
return require('./Libraries/Components/MaskedView/MaskedViewIOS');
165165
},
@@ -171,7 +171,7 @@ module.exports = {
171171
'picker-moved',
172172
'Picker has been extracted from react-native core and will be removed in a future release. ' +
173173
"It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " +
174-
'See https://github.com/react-native-picker/react-native-picker',
174+
'See https://github.com/react-native-picker/picker',
175175
);
176176
return require('./Libraries/Components/Picker/Picker');
177177
},
@@ -181,7 +181,7 @@ module.exports = {
181181
'pickerios-moved',
182182
'PickerIOS has been extracted from react-native core and will be removed in a future release. ' +
183183
"It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " +
184-
'See https://github.com/react-native-picker/react-native-picker',
184+
'See https://github.com/react-native-picker/picker',
185185
);
186186
return require('./Libraries/Components/Picker/PickerIOS');
187187
},
@@ -225,7 +225,7 @@ module.exports = {
225225
warnOnce(
226226
'segmented-control-ios-moved',
227227
'SegmentedControlIOS has been extracted from react-native core and will be removed in a future release. ' +
228-
"It can now be installed and imported from '@react-native-community/segmented-control' instead of 'react-native'. " +
228+
"It can now be installed and imported from '@react-native-segmented-control/segmented-control' instead of 'react-native'. " +
229229
'See https://github.com/react-native-segmented-control/segmented-control',
230230
);
231231
return require('./Libraries/Components/SegmentedControlIOS/SegmentedControlIOS');
@@ -312,7 +312,7 @@ module.exports = {
312312
warnOnce(
313313
'clipboard-moved',
314314
'Clipboard has been extracted from react-native core and will be removed in a future release. ' +
315-
"It can now be installed and imported from '@react-native-community/clipboard' instead of 'react-native'. " +
315+
"It can now be installed and imported from '@react-native-clipboard/clipboard' instead of 'react-native'. " +
316316
'See https://github.com/react-native-clipboard/clipboard',
317317
);
318318
return require('./Libraries/Components/Clipboard/Clipboard');

0 commit comments

Comments
 (0)