Skip to content

Commit

Permalink
Back out "Change StatusBar default style handling strategy"
Browse files Browse the repository at this point in the history
Summary:
Original commit changeset: 76e7d0d45fd3

Changelog: [Internal]

Reviewed By: makovkastar

Differential Revision: D24783092

fbshipit-source-id: 876eaeaffbed63599553456f189f3675aa406e13
  • Loading branch information
luluwu2032 authored and facebook-github-bot committed Nov 9, 2020
1 parent b6362c2 commit 8e956b3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const NativeStatusBarManager = {
/**
* - statusBarStyles can be:
* - 'default'
* - 'light-content'
* - 'dark-content'
*/
setStyle(statusBarStyle?: ?string): void {
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/StatusBar/StatusBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import NativeStatusBarManagerIOS from './NativeStatusBarManagerIOS';
*/
export type StatusBarStyle = $Keys<{
/**
* Default status bar style (dark for iOS, no change for Android)
* Default status bar style (dark for iOS, light for Android)
*/
default: string,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void run() {
int systemUiVisibilityFlags = decorView.getSystemUiVisibility();
if ("dark-content".equals(style)) {
systemUiVisibilityFlags |= View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
} else if ("light-content".equals(style)) {
} else {
systemUiVisibilityFlags &= ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
}
decorView.setSystemUiVisibility(systemUiVisibilityFlags);
Expand Down

0 comments on commit 8e956b3

Please sign in to comment.