Skip to content

Commit

Permalink
Fix statusBar color issue in landscape mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashwave authored and burnerlee committed Nov 19, 2024
1 parent 15b5130 commit 2ef187e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/common/ZulipStatusBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@ export default function ZulipStatusBar(props: Props): Node {
const statusBarColor = getStatusBarColor(backgroundColor, themeToUse);

return (
orientation === 'PORTRAIT' && (
<StatusBar
animated
showHideTransition="slide"
hidden={hidden && Platform.OS !== 'android'}
backgroundColor={Color(statusBarColor).darken(0.1).hsl().string()}
barStyle={getStatusBarStyle(statusBarColor)}
/>
)
<StatusBar
animated
showHideTransition="slide"
hidden={hidden && Platform.OS !== 'android'}
backgroundColor={Color(statusBarColor).darken(0.1).hsl().string()}
barStyle={getStatusBarStyle(statusBarColor)}
/>
);
}

0 comments on commit 2ef187e

Please sign in to comment.