1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00

Mobile: Removes whitespace above navigation component (#6597)

This commit is contained in:
Tom 2022-07-10 14:59:33 +01:00 committed by GitHub
parent 8bb5b4a557
commit 879702dadf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -872,7 +872,8 @@ class AppComponent extends React.Component {
Config: { screen: ConfigScreen },
};
const statusBarStyle = theme.appearance === 'light' ? 'dark-content' : 'light-content';
// const statusBarStyle = theme.appearance === 'light-content';
const statusBarStyle = 'light-content';
return (
<View style={{ flex: 1, backgroundColor: theme.backgroundColor }}>
@ -889,7 +890,8 @@ class AppComponent extends React.Component {
}}
>
<StatusBar barStyle={statusBarStyle} />
<MenuContext style={{ flex: 1, backgroundColor: theme.backgroundColor }}>
<MenuContext style={{ flex: 1 }}>
<SafeAreaView style={{ flex: 0, backgroundColor: theme.backgroundColor2 }}/>
<SafeAreaView style={{ flex: 1 }}>
<View style={{ flex: 1, backgroundColor: theme.backgroundColor }}>
<AppNav screens={appNavInit} />