mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
add warning for StatusBarIOS (#25350)
Summary: `StatusBarIOS` has been merged with `StatusBar`. See [Implement a StatusBar frame API](https://github.com/facebook/react-native/pull/16478) ## Changelog [General] [Deprecate] - Warning for `StatusBarIOS` Pull Request resolved: https://github.com/facebook/react-native/pull/25350 Test Plan: Warning prints when user imports `StatusBarIOS` Differential Revision: D15963347 Pulled By: cpojer fbshipit-source-id: 456a7f3ccb245bd89ad322d5a2649e3bf844ba24
This commit is contained in:
committed by
Facebook Github Bot
parent
27b672993d
commit
a833778553
@@ -251,6 +251,10 @@ module.exports = {
|
||||
return require('../Share/Share');
|
||||
},
|
||||
get 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('../Components/StatusBar/StatusBarIOS');
|
||||
},
|
||||
get StyleSheet() {
|
||||
|
||||
Reference in New Issue
Block a user