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

iOS: Fixes #2384: Improve support for dark mode

This commit is contained in:
Laurent Cozic 2020-02-14 00:17:09 +00:00
parent 3361901cd8
commit f97bae0b27
2 changed files with 4 additions and 1 deletions

View File

@ -68,5 +68,7 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
</dict>
</plist>

View File

@ -1,7 +1,7 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { AppState, Keyboard, NativeModules, BackHandler, Platform, Animated, View } = require('react-native');
const { AppState, Keyboard, NativeModules, BackHandler, Platform, Animated, View, StatusBar } = require('react-native');
const SafeAreaView = require('lib/components/SafeAreaView');
const { connect, Provider } = require('react-redux');
const { BackButtonService } = require('lib/services/back-button.js');
@ -750,6 +750,7 @@ class AppComponent extends React.Component {
});
}}
>
<StatusBar barStyle="dark-content" />
<MenuContext style={{ flex: 1 }}>
<SafeAreaView style={{ flex: 1 }}>
<View style={{ flex: 1, backgroundColor: theme.backgroundColor }}>