From bc4c7a262d4e634aa053878732b9c0911633e765 Mon Sep 17 00:00:00 2001 From: Rui Ying Date: Wed, 6 May 2020 21:05:17 +0800 Subject: [PATCH] Fix dark mode background color for two more screens --- src/screens/AgreementScreen.tsx | 6 ++++++ src/screens/HelpScreen.tsx | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/screens/AgreementScreen.tsx b/src/screens/AgreementScreen.tsx index b76a1a1a..e59ff3c8 100644 --- a/src/screens/AgreementScreen.tsx +++ b/src/screens/AgreementScreen.tsx @@ -13,6 +13,7 @@ import Colors from '../constants/Colors'; import RaisedButton from '../components/RaisedButton'; import {useTypedSelector} from '../redux/store'; import {setSetting} from '../redux/actions/settings'; +import DeviceInfo from '../constants/DeviceInfo'; declare const preval: any; @@ -74,6 +75,11 @@ const AgreementScreen: INavigationScreen = (props) => { highlight darkMode={colorScheme === 'dark'} onNavigationStateChange={onNavigationStateChange} + injectedJavaScript={ + DeviceInfo.isMac() + ? 'document.body.style.backgroundColor = "rgb(30,30,30)"' + : '' + } /> { highlight darkMode={colorScheme === 'dark'} onNavigationStateChange={onNavigationStateChange} + injectedJavaScript={ + DeviceInfo.isMac() + ? 'document.body.style.backgroundColor = "rgb(30,30,30)"' + : '' + } /> );