Skip to content

Commit

Permalink
add warning for StatusBarIOS (#25350)
Browse files Browse the repository at this point in the history
Summary:
`StatusBarIOS` has been merged with `StatusBar`. See [Implement a StatusBar frame API](#16478)

## Changelog

[General] [Deprecate] -  Warning for `StatusBarIOS`
Pull Request resolved: #25350

Test Plan: Warning prints when user imports `StatusBarIOS`

Differential Revision: D15963347

Pulled By: cpojer

fbshipit-source-id: 456a7f3ccb245bd89ad322d5a2649e3bf844ba24
  • Loading branch information
ecreeth authored and facebook-github-bot committed Jun 24, 2019
1 parent 27b6729 commit a833778
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/react-native/react-native-implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a833778

Please sign in to comment.