@@ -130,7 +130,7 @@ module.exports = {
130
130
'DatePickerIOS-merged' ,
131
131
'DatePickerIOS has been merged with DatePickerAndroid and will be removed in a future release. ' +
132
132
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
133
- 'See https://github.com/react-native-community/react-native- datetimepicker' ,
133
+ 'See https://github.com/react-native-community/datetimepicker' ,
134
134
) ;
135
135
return require ( './Libraries/Components/DatePicker/DatePickerIOS' ) ;
136
136
} ,
@@ -183,9 +183,21 @@ module.exports = {
183
183
return require ( './Libraries/Components/Picker/PickerIOS' ) ;
184
184
} ,
185
185
get ProgressBarAndroid ( ) : ProgressBarAndroid {
186
+ warnOnce (
187
+ 'progress-bar-android-moved' ,
188
+ 'ProgressBarAndroid has been extracted from react-native core and will be removed in a future release. ' +
189
+ "It can now be installed and imported from '@react-native-community/progress-bar-android' instead of 'react-native'. " +
190
+ 'See https://github.com/react-native-community/progress-bar-android' ,
191
+ ) ;
186
192
return require ( './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid' ) ;
187
193
} ,
188
194
get ProgressViewIOS ( ) : ProgressViewIOS {
195
+ warnOnce (
196
+ 'progress-view-ios-moved' ,
197
+ 'ProgressViewIOS has been extracted from react-native core and will be removed in a future release. ' +
198
+ "It can now be installed and imported from '@react-native-community/progress-view' instead of 'react-native'. " +
199
+ 'See https://github.com/react-native-community/progress-view' ,
200
+ ) ;
189
201
return require ( './Libraries/Components/ProgressViewIOS/ProgressViewIOS' ) ;
190
202
} ,
191
203
get SafeAreaView ( ) : SafeAreaView {
@@ -198,6 +210,12 @@ module.exports = {
198
210
return require ( './Libraries/Lists/SectionList' ) ;
199
211
} ,
200
212
get SegmentedControlIOS ( ) : SegmentedControlIOS {
213
+ warnOnce (
214
+ 'segmented-control-ios-moved' ,
215
+ 'SegmentedControlIOS has been extracted from react-native core and will be removed in a future release. ' +
216
+ "It can now be installed and imported from '@react-native-community/segmented-control' instead of 'react-native'. " +
217
+ 'See https://github.com/react-native-community/segmented-control' ,
218
+ ) ;
201
219
return require ( './Libraries/Components/SegmentedControlIOS/SegmentedControlIOS' ) ;
202
220
} ,
203
221
get Slider ( ) : Slider {
@@ -273,22 +291,28 @@ module.exports = {
273
291
'async-storage-moved' ,
274
292
'AsyncStorage has been extracted from react-native core and will be removed in a future release. ' +
275
293
"It can now be installed and imported from '@react-native-community/async-storage' instead of 'react-native'. " +
276
- 'See https://github.com/react-native-community/react-native- async-storage' ,
294
+ 'See https://github.com/react-native-community/async-storage' ,
277
295
) ;
278
296
return require ( './Libraries/Storage/AsyncStorage' ) ;
279
297
} ,
280
298
get BackHandler ( ) : BackHandler {
281
299
return require ( './Libraries/Utilities/BackHandler' ) ;
282
300
} ,
283
301
get Clipboard ( ) : Clipboard {
302
+ warnOnce (
303
+ 'clipboard-moved' ,
304
+ 'Clipboard has been extracted from react-native core and will be removed in a future release. ' +
305
+ "It can now be installed and imported from '@react-native-community/clipboard' instead of 'react-native'. " +
306
+ 'See https://github.com/react-native-community/clipboard' ,
307
+ ) ;
284
308
return require ( './Libraries/Components/Clipboard/Clipboard' ) ;
285
309
} ,
286
310
get DatePickerAndroid ( ) : DatePickerAndroid {
287
311
warnOnce (
288
312
'DatePickerAndroid-merged' ,
289
313
'DatePickerAndroid has been merged with DatePickerIOS and will be removed in a future release. ' +
290
314
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
291
- 'See https://github.com/react-native-community/react-native- datetimepicker' ,
315
+ 'See https://github.com/react-native-community/datetimepicker' ,
292
316
) ;
293
317
return require ( './Libraries/Components/DatePickerAndroid/DatePickerAndroid' ) ;
294
318
} ,
@@ -356,7 +380,7 @@ module.exports = {
356
380
'pushNotificationIOS-moved' ,
357
381
'PushNotificationIOS has been extracted from react-native core and will be removed in a future release. ' +
358
382
"It can now be installed and imported from '@react-native-community/push-notification-ios' instead of 'react-native'. " +
359
- 'See https://github.com/react-native-community/react-native- push-notification-ios' ,
383
+ 'See https://github.com/react-native-community/push-notification-ios' ,
360
384
) ;
361
385
return require ( './Libraries/PushNotificationIOS/PushNotificationIOS' ) ;
362
386
} ,
@@ -466,7 +490,7 @@ if (__DEV__) {
466
490
false ,
467
491
'ART has been removed from React Native. ' +
468
492
"It can now be installed and imported from '@react-native-community/art' instead of 'react-native'. " +
469
- 'See https://github.com/react-native-community/react-native- art' ,
493
+ 'See https://github.com/react-native-community/art' ,
470
494
) ;
471
495
} ,
472
496
} ) ;
@@ -571,7 +595,7 @@ if (__DEV__) {
571
595
false ,
572
596
'TimePickerAndroid has been removed from React Native. ' +
573
597
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
574
- 'See https://github.com/react-native-community/react-native- datetimepicker' ,
598
+ 'See https://github.com/react-native-community/datetimepicker' ,
575
599
) ;
576
600
} ,
577
601
} ) ;
0 commit comments