Skip to content

Commit

Permalink
Fix dark mode background color for two more screens
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed May 6, 2020
1 parent d7fe0b9 commit bc4c7a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/screens/AgreementScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)"'
: ''
}
/>
<RaisedButton
style={[
Expand Down
6 changes: 6 additions & 0 deletions src/screens/HelpScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {getScreenOptions} from '../helpers/navigation';
import {adaptToSystemTheme} from '../helpers/darkmode';
import {useColorScheme} from 'react-native-appearance';
import Colors from '../constants/Colors';
import DeviceInfo from '../constants/DeviceInfo';

declare const preval: any;

Expand Down Expand Up @@ -54,6 +55,11 @@ const HelpScreen: INavigationScreen = (props) => {
highlight
darkMode={colorScheme === 'dark'}
onNavigationStateChange={onNavigationStateChange}
injectedJavaScript={
DeviceInfo.isMac()
? 'document.body.style.backgroundColor = "rgb(30,30,30)"'
: ''
}
/>
</SafeAreaView>
);
Expand Down

0 comments on commit bc4c7a2

Please sign in to comment.