FIX: ListItem background color would fail under dark mode (#6089)

This commit is contained in:
Marcos Rodriguez Vélez 2024-02-04 11:49:26 -04:00 committed by GitHub
parent a61b3b327c
commit 197702582e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { Platform, useWindowDimensions, Dimensions, I18nManager } from 'react-native';
import Settings from './screen/settings/settings';
import Settings from './screen/settings/Settings';
import About from './screen/settings/about';
import ReleaseNotes from './screen/settings/releasenotes';
import Licensing from './screen/settings/licensing';

View file

@ -57,7 +57,7 @@ const ListItem: React.FC<ListItemProps> = React.memo(props => {
fontSize: 14,
},
containerStyle: {
backgroundColor: 'transparent',
backgroundColor: colors.background,
},
});

View file

@ -73,7 +73,7 @@ const Currency: React.FC = () => {
<ListItem
disabled={isSavingNewPreferredCurrency || selectedCurrency.endPointKey === item.endPointKey}
title={`${item.endPointKey} (${item.symbol})`}
containerStyle={{ height: ITEM_HEIGHT }}
containerStyle={StyleSheet.flatten([styles.flex, { height: ITEM_HEIGHT }])}
checkmark={selectedCurrency.endPointKey === item.endPointKey}
onPress={async () => {
setIsSavingNewPreferredCurrency(true);

View file

@ -1,7 +1,7 @@
import assert from 'assert';
import React from 'react';
import TestRenderer from 'react-test-renderer';
import Settings from '../../screen/settings/settings';
import Settings from '../../screen/settings/Settings';
import Selftest from '../../screen/selftest';
import { BlueHeaderDefaultSub } from '../../BlueComponents';