diff --git a/apps/mobile/components/category/select-category-icon-field.tsx b/apps/mobile/components/category/select-category-icon-field.tsx index 652aa817..2ef82648 100644 --- a/apps/mobile/components/category/select-category-icon-field.tsx +++ b/apps/mobile/components/category/select-category-icon-field.tsx @@ -1,10 +1,12 @@ import { BottomSheetBackdrop, BottomSheetModal } from '@gorhom/bottom-sheet' import { useMemo, useRef } from 'react' +import { useColorScheme } from '@/hooks/useColorScheme' import { CATEGORY_EXPENSE_ICONS, CATEGORY_INCOME_ICONS, } from '@/lib/icons/category-icons' +import { theme } from '@/lib/theme' import { sleep } from '@/lib/utils' import type { CategoryTypeType } from '@6pm/validation' import { useController } from 'react-hook-form' @@ -24,6 +26,8 @@ export function SelectCategoryIconField({ type: CategoryTypeType }) { const sheetRef = useRef(null) + const { colorScheme } = useColorScheme() + const { field: { onChange, onBlur, value }, // fieldState, @@ -54,6 +58,7 @@ export function SelectCategoryIconField({ enablePanDownToClose enableDismissOnClose keyboardBehavior="extend" + backgroundStyle={{ backgroundColor: theme[colorScheme].background }} backdropComponent={(props) => ( (null) const { i18n } = useLingui() @@ -66,6 +69,7 @@ export function SelectAccountField({ enableDynamicSizing enablePanDownToClose keyboardBehavior="extend" + backgroundStyle={{ backgroundColor: theme[colorScheme].background }} backdropComponent={(props) => ( (null) const { i18n } = useLingui() @@ -74,6 +77,7 @@ export function SelectCategoryField({ enableDynamicSizing enablePanDownToClose keyboardBehavior="extend" + backgroundStyle={{ backgroundColor: theme[colorScheme].background }} backdropComponent={(props) => ( void }) { const { bottom } = useSafeAreaInsets() + const { colorScheme } = useColorScheme() const sheetRef = useRef(null) const { field: { onChange, onBlur, value }, @@ -82,6 +85,7 @@ export function SelectDateField({ enableDynamicSizing enablePanDownToClose keyboardBehavior="extend" + backgroundStyle={{ backgroundColor: theme[colorScheme].background }} backdropComponent={(props) => ( diff --git a/apps/mobile/components/wallet/select-account-icon-field.tsx b/apps/mobile/components/wallet/select-account-icon-field.tsx index 1941d711..d94d330e 100644 --- a/apps/mobile/components/wallet/select-account-icon-field.tsx +++ b/apps/mobile/components/wallet/select-account-icon-field.tsx @@ -1,7 +1,9 @@ import { BottomSheetBackdrop, BottomSheetModal } from '@gorhom/bottom-sheet' import { useRef } from 'react' +import { useColorScheme } from '@/hooks/useColorScheme' import { WALLET_ICONS } from '@/lib/icons/wallet-icons' +import { theme } from '@/lib/theme' import { useController } from 'react-hook-form' import { Keyboard } from 'react-native' import { FullWindowOverlay } from 'react-native-screens' @@ -14,6 +16,7 @@ export function SelectAccountIconField({ }: { onSelect?: (currency: string) => void }) { + const { colorScheme } = useColorScheme() const sheetRef = useRef(null) const { field: { onChange, onBlur, value }, @@ -37,6 +40,7 @@ export function SelectAccountIconField({ index={0} enableDynamicSizing enablePanDownToClose + backgroundStyle={{ backgroundColor: theme[colorScheme].background }} keyboardBehavior="extend" backdropComponent={(props) => ( void }) { const sheetRef = useRef(null) + const { colorScheme } = useColorScheme() const { field: { onChange, onBlur, value }, // fieldState, @@ -36,6 +39,7 @@ export function SelectCurrencyField({ index={0} snapPoints={['50%', '87%']} enablePanDownToClose + backgroundStyle={{ backgroundColor: theme[colorScheme].background }} keyboardBehavior="extend" backdropComponent={(props) => (