Skip to content

Commit ae427d5

Browse files
committed
fix(theme): theme check
1 parent cc71d1c commit ae427d5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/components/ListItem/ListItem.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { ListItemProps, View } from '@bluebase/components';
2-
import { Theme, useStyles } from '@bluebase/core';
2+
import { Theme, useStyles, useTheme } from '@bluebase/core';
33
import { List } from 'react-native-paper';
44
import React from 'react';
55
import { componentMapper } from '@bluebase/component-mapper';
66

77
export const selectListItem = (props: any) => {
8+
const theme = useTheme();
89
const styles = useStyles('ListItem', props, {
910
background: {
10-
backgroundColor: 'rgb(166, 166, 166)',
11+
backgroundColor: theme.theme.mode === 'dark' ? '#686868' : '#dbdbdb',
1112
},
1213
});
1314

0 commit comments

Comments
 (0)