-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor!: drop deprecated StatusBarIOS
#31466
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,6 @@ import typeof PixelRatio from './Libraries/Utilities/PixelRatio'; | |
import typeof PushNotificationIOS from './Libraries/PushNotificationIOS/PushNotificationIOS'; | ||
import typeof Settings from './Libraries/Settings/Settings'; | ||
import typeof Share from './Libraries/Share/Share'; | ||
import typeof StatusBarIOS from './Libraries/Components/StatusBar/StatusBarIOS'; | ||
import typeof StyleSheet from './Libraries/StyleSheet/StyleSheet'; | ||
import typeof Systrace from './Libraries/Performance/Systrace'; | ||
import typeof ToastAndroid from './Libraries/Components/ToastAndroid/ToastAndroid'; | ||
|
@@ -384,13 +383,6 @@ module.exports = { | |
get Share(): Share { | ||
return require('./Libraries/Share/Share'); | ||
}, | ||
get StatusBarIOS(): StatusBarIOS { | ||
warnOnce( | ||
'StatusBarIOS-merged', | ||
'StatusBarIOS has been merged with StatusBar and will be removed in a future release. Use StatusBar for mutating the status bar', | ||
); | ||
return require('./Libraries/Components/StatusBar/StatusBarIOS'); | ||
}, | ||
get StyleSheet(): StyleSheet { | ||
return require('./Libraries/StyleSheet/StyleSheet'); | ||
}, | ||
|
@@ -677,19 +669,19 @@ if (__DEV__) { | |
); | ||
}, | ||
}); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. prettier/prettier: Delete |
||
|
||
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when | ||
* attempting to access Picker. */ | ||
* attempting to access StatusBarIOS. */ | ||
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when | ||
* attempting to access Picker. */ | ||
Object.defineProperty(module.exports, 'Picker', { | ||
* attempting to access StatusBarIOS. */ | ||
Object.defineProperty(module.exports, 'StatusBarIOS', { | ||
configurable: true, | ||
get() { | ||
invariant( | ||
false, | ||
'Picker has been removed from React Native. ' + | ||
"It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " + | ||
'See https://github.com/react-native-picker/picker', | ||
'StatusBarIOS has been removed from React Native. ' + | ||
'Has been merged with StatusBar. ' + | ||
'See https://reactnative.dev/docs/statusbar', | ||
); | ||
}, | ||
}); | ||
|
@@ -709,4 +701,20 @@ if (__DEV__) { | |
); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no-trailing-spaces: Trailing spaces not allowed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. prettier/prettier: Delete |
||
}, | ||
}); | ||
|
||
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when | ||
* attempting to access Picker. */ | ||
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when | ||
* attempting to access Picker. */ | ||
Object.defineProperty(module.exports, 'Picker', { | ||
configurable: true, | ||
get() { | ||
invariant( | ||
false, | ||
'Picker has been removed from React Native. ' + | ||
"It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " + | ||
'See https://github.com/react-native-picker/picker', | ||
); | ||
}, | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no-trailing-spaces: Trailing spaces not allowed.