Skip to content

Commit 4421a64

Browse files
Naturalclarfacebook-github-bot
authored andcommitted
chore: updated url of deprecated modules (#30422)
Summary: Part of react-native-community/releases#207 Migrate warnings in index.js to point to new lean core repos NOTE: some npm modules has been transferred to new nom namespace, such as `react-native-picker/picker` `react-native-async-storage/async-storage` `react-native-masked-view/masked-view`. Some lean core repo has been transferred to new repo, but its npm namespace remains the same. ex: clipboard module exists in react-native-clipboard/clipboard repo, but npm package name is still `react-native-community/clipboard` (they're planned to be migrated in the future) ## 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] - Migrate warnings in index.js to point to new lean core repos Pull Request resolved: #30422 Test Plan: - Updated repo URL can be accessed - Updated npm package can be installed Reviewed By: rickhanlonii Differential Revision: D25077750 Pulled By: cpojer fbshipit-source-id: b736ea449835bdf3d2a2f85e5c86e5253b90db78
1 parent 00e623d commit 4421a64

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

index.js

+26-26
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ module.exports = {
131131
'DatePickerIOS-merged',
132132
'DatePickerIOS has been merged with DatePickerAndroid and will be removed in a future release. ' +
133133
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
134-
'See https://github.com/react-native-community/datetimepicker',
134+
'See https://github.com/react-native-datetimepicker/datetimepicker',
135135
);
136136
return require('./Libraries/Components/DatePicker/DatePickerIOS');
137137
},
@@ -158,8 +158,8 @@ module.exports = {
158158
warnOnce(
159159
'maskedviewios-moved',
160160
'MaskedViewIOS has been extracted from react-native core and will be removed in a future release. ' +
161-
"It can now be installed and imported from '@react-native-community/masked-view' instead of 'react-native'. " +
162-
'See https://github.com/react-native-community/react-native-masked-view',
161+
"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',
163163
);
164164
return require('./Libraries/Components/MaskedView/MaskedViewIOS');
165165
},
@@ -170,8 +170,8 @@ module.exports = {
170170
warnOnce(
171171
'picker-moved',
172172
'Picker has been extracted from react-native core and will be removed in a future release. ' +
173-
"It can now be installed and imported from '@react-native-community/picker' instead of 'react-native'. " +
174-
'See https://github.com/react-native-community/react-native-picker',
173+
"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',
175175
);
176176
return require('./Libraries/Components/Picker/Picker');
177177
},
@@ -180,8 +180,8 @@ module.exports = {
180180
warnOnce(
181181
'pickerios-moved',
182182
'PickerIOS has been extracted from react-native core and will be removed in a future release. ' +
183-
"It can now be installed and imported from '@react-native-community/picker' instead of 'react-native'. " +
184-
'See https://github.com/react-native-community/react-native-picker',
183+
"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',
185185
);
186186
return require('./Libraries/Components/Picker/PickerIOS');
187187
},
@@ -194,7 +194,7 @@ module.exports = {
194194
'progress-bar-android-moved',
195195
'ProgressBarAndroid has been extracted from react-native core and will be removed in a future release. ' +
196196
"It can now be installed and imported from '@react-native-community/progress-bar-android' instead of 'react-native'. " +
197-
'See https://github.com/react-native-community/progress-bar-android',
197+
'See https://github.com/react-native-progress-view/progress-bar-android',
198198
);
199199
return require('./Libraries/Components/ProgressBarAndroid/ProgressBarAndroid');
200200
},
@@ -204,7 +204,7 @@ module.exports = {
204204
'progress-view-ios-moved',
205205
'ProgressViewIOS has been extracted from react-native core and will be removed in a future release. ' +
206206
"It can now be installed and imported from '@react-native-community/progress-view' instead of 'react-native'. " +
207-
'See https://github.com/react-native-community/progress-view',
207+
'See https://github.com/react-native-progress-view/progress-view',
208208
);
209209
return require('./Libraries/Components/ProgressViewIOS/ProgressViewIOS');
210210
},
@@ -226,7 +226,7 @@ module.exports = {
226226
'segmented-control-ios-moved',
227227
'SegmentedControlIOS has been extracted from react-native core and will be removed in a future release. ' +
228228
"It can now be installed and imported from '@react-native-community/segmented-control' instead of 'react-native'. " +
229-
'See https://github.com/react-native-community/segmented-control',
229+
'See https://github.com/react-native-segmented-control/segmented-control',
230230
);
231231
return require('./Libraries/Components/SegmentedControlIOS/SegmentedControlIOS');
232232
},
@@ -235,7 +235,7 @@ module.exports = {
235235
'slider-moved',
236236
'Slider has been extracted from react-native core and will be removed in a future release. ' +
237237
"It can now be installed and imported from '@react-native-community/slider' instead of 'react-native'. " +
238-
'See https://github.com/react-native-community/react-native-slider',
238+
'See https://github.com/callstack/react-native-slider',
239239
);
240240
return require('./Libraries/Components/Slider/Slider');
241241
},
@@ -300,8 +300,8 @@ module.exports = {
300300
warnOnce(
301301
'async-storage-moved',
302302
'AsyncStorage has been extracted from react-native core and will be removed in a future release. ' +
303-
"It can now be installed and imported from '@react-native-community/async-storage' instead of 'react-native'. " +
304-
'See https://github.com/react-native-community/async-storage',
303+
"It can now be installed and imported from '@react-native-async-storage/async-storage' instead of 'react-native'. " +
304+
'See https://github.com/react-native-async-storage/async-storage',
305305
);
306306
return require('./Libraries/Storage/AsyncStorage');
307307
},
@@ -313,7 +313,7 @@ module.exports = {
313313
'clipboard-moved',
314314
'Clipboard has been extracted from react-native core and will be removed in a future release. ' +
315315
"It can now be installed and imported from '@react-native-community/clipboard' instead of 'react-native'. " +
316-
'See https://github.com/react-native-community/clipboard',
316+
'See https://github.com/react-native-clipboard/clipboard',
317317
);
318318
return require('./Libraries/Components/Clipboard/Clipboard');
319319
},
@@ -322,7 +322,7 @@ module.exports = {
322322
'DatePickerAndroid-merged',
323323
'DatePickerAndroid has been merged with DatePickerIOS and will be removed in a future release. ' +
324324
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
325-
'See https://github.com/react-native-community/datetimepicker',
325+
'See https://github.com/react-native-datetimepicker/datetimepicker',
326326
);
327327
return require('./Libraries/Components/DatePickerAndroid/DatePickerAndroid');
328328
},
@@ -350,7 +350,7 @@ module.exports = {
350350
'ImagePickerIOS has been extracted from react-native core and will be removed in a future release. ' +
351351
"Please upgrade to use either '@react-native-community/react-native-image-picker' or 'expo-image-picker'. " +
352352
"If you cannot upgrade to a different library, please install the deprecated '@react-native-community/image-picker-ios' package. " +
353-
'See https://github.com/react-native-community/react-native-image-picker-ios',
353+
'See https://github.com/rnc-archive/react-native-image-picker-ios',
354354
);
355355
return require('./Libraries/Image/ImagePickerIOS');
356356
},
@@ -393,7 +393,7 @@ module.exports = {
393393
'pushNotificationIOS-moved',
394394
'PushNotificationIOS has been extracted from react-native core and will be removed in a future release. ' +
395395
"It can now be installed and imported from '@react-native-community/push-notification-ios' instead of 'react-native'. " +
396-
'See https://github.com/react-native-community/push-notification-ios',
396+
'See https://github.com/react-native-push-notification-ios/push-notification-ios',
397397
);
398398
return require('./Libraries/PushNotificationIOS/PushNotificationIOS');
399399
},
@@ -512,7 +512,7 @@ if (__DEV__) {
512512
false,
513513
'ART has been removed from React Native. ' +
514514
"It can now be installed and imported from '@react-native-community/art' instead of 'react-native'. " +
515-
'See https://github.com/react-native-community/art',
515+
'See https://github.com/react-native-art/art',
516516
);
517517
},
518518
});
@@ -551,7 +551,7 @@ if (__DEV__) {
551551
false,
552552
'WebView has been removed from React Native. ' +
553553
"It can now be installed and imported from 'react-native-webview' instead of 'react-native'. " +
554-
'See https://github.com/react-native-community/react-native-webview',
554+
'See https://github.com/react-native-webview/react-native-webview',
555555
);
556556
},
557557
});
@@ -564,7 +564,7 @@ if (__DEV__) {
564564
false,
565565
'NetInfo has been removed from React Native. ' +
566566
"It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. " +
567-
'See https://github.com/react-native-community/react-native-netinfo',
567+
'See https://github.com/react-native-netinfo/react-native-netinfo',
568568
);
569569
},
570570
});
@@ -577,7 +577,7 @@ if (__DEV__) {
577577
false,
578578
'CameraRoll has been removed from React Native. ' +
579579
"It can now be installed and imported from '@react-native-community/cameraroll' instead of 'react-native'. " +
580-
'See https://github.com/react-native-community/react-native-cameraroll',
580+
'See https://github.com/react-native-cameraroll/react-native-cameraroll',
581581
);
582582
},
583583
});
@@ -604,7 +604,7 @@ if (__DEV__) {
604604
false,
605605
'ImageEditor has been removed from React Native. ' +
606606
"It can now be installed and imported from '@react-native-community/image-editor' instead of 'react-native'. " +
607-
'See https://github.com/react-native-community/react-native-image-editor',
607+
'See https://github.com/callstack/react-native-image-editor',
608608
);
609609
},
610610
});
@@ -617,7 +617,7 @@ if (__DEV__) {
617617
false,
618618
'TimePickerAndroid has been removed from React Native. ' +
619619
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
620-
'See https://github.com/react-native-community/datetimepicker',
620+
'See https://github.com/react-native-datetimepicker/datetimepicker',
621621
);
622622
},
623623
});
@@ -630,7 +630,7 @@ if (__DEV__) {
630630
false,
631631
'ToolbarAndroid has been removed from React Native. ' +
632632
"It can now be installed and imported from '@react-native-community/toolbar-android' instead of 'react-native'. " +
633-
'See https://github.com/react-native-community/toolbar-android',
633+
'See https://github.com/react-native-toolbar-android/toolbar-android',
634634
);
635635
},
636636
});
@@ -643,7 +643,7 @@ if (__DEV__) {
643643
false,
644644
'ViewPagerAndroid has been removed from React Native. ' +
645645
"It can now be installed and imported from '@react-native-community/viewpager' instead of 'react-native'. " +
646-
'See https://github.com/react-native-community/react-native-viewpager',
646+
'See https://github.com/callstack/react-native-viewpager',
647647
);
648648
},
649649
});
@@ -656,7 +656,7 @@ if (__DEV__) {
656656
false,
657657
'CheckBox has been removed from React Native. ' +
658658
"It can now be installed and imported from '@react-native-community/checkbox' instead of 'react-native'. " +
659-
'See https://github.com/react-native-community/react-native-checkbox',
659+
'See https://github.com/react-native-checkbox/react-native-checkbox',
660660
);
661661
},
662662
});

0 commit comments

Comments
 (0)