@@ -24,7 +24,6 @@ import typeof KeyboardAvoidingView from './Libraries/Components/Keyboard/Keyboar
2424import typeof Modal from './Libraries/Modal/Modal' ;
2525import typeof Pressable from './Libraries/Components/Pressable/Pressable' ;
2626import typeof ProgressBarAndroid from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid' ;
27- import typeof ProgressViewIOS from './Libraries/Components/ProgressViewIOS/ProgressViewIOS' ;
2827import typeof RefreshControl from './Libraries/Components/RefreshControl/RefreshControl' ;
2928import typeof SafeAreaView from './Libraries/Components/SafeAreaView/SafeAreaView' ;
3029import typeof ScrollView from './Libraries/Components/ScrollView/ScrollView' ;
@@ -160,16 +159,6 @@ module.exports = {
160159 ) ;
161160 return require ( './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid' ) ;
162161 } ,
163- // $FlowFixMe[value-as-type]
164- get ProgressViewIOS ( ) : ProgressViewIOS {
165- warnOnce (
166- 'progress-view-ios-moved' ,
167- 'ProgressViewIOS has been extracted from react-native core and will be removed in a future release. ' +
168- "It can now be installed and imported from '@react-native-community/progress-view' instead of 'react-native'. " +
169- 'See https://github.com/react-native-progress-view/progress-view' ,
170- ) ;
171- return require ( './Libraries/Components/ProgressViewIOS/ProgressViewIOS' ) ;
172- } ,
173162 get RefreshControl ( ) : RefreshControl {
174163 return require ( './Libraries/Components/RefreshControl/RefreshControl' ) ;
175164 } ,
@@ -770,4 +759,19 @@ if (__DEV__) {
770759 ) ;
771760 } ,
772761 } ) ;
762+ /* $FlowFixMe[prop-missing] This is intentional: Flow will error when
763+ * attempting to access ProgressViewIOS. */
764+ /* $FlowFixMe[invalid-export] This is intentional: Flow will error when
765+ * attempting to access ProgressViewIOS. */
766+ Object . defineProperty ( module . exports , 'ProgressViewIOS' , {
767+ configurable : true ,
768+ get ( ) {
769+ invariant (
770+ false ,
771+ 'ProgressViewIOS has been removed from react-native core. ' +
772+ "It can now be installed and imported from '@react-native-community/progress-view' instead of 'react-native'. " +
773+ 'See https://github.com/react-native-progress-view/progress-view' ,
774+ ) ;
775+ } ,
776+ } ) ;
773777}
0 commit comments