diff --git a/components/QRCode.tsx b/components/QRCode.tsx index 854b6c1..13d782e 100644 --- a/components/QRCode.tsx +++ b/components/QRCode.tsx @@ -2,6 +2,7 @@ import { LinearGradient } from "components/LinearGradient"; import { Dimensions, View } from "react-native"; import QRCodeStyled from "react-native-qrcode-styled"; import AlbyGoLogomark from "~/components/AlbyGoLogomark"; +import { THEME_COLORS } from "~/lib/constants"; import { useThemeColor } from "~/lib/useThemeColor"; function QRCode({ @@ -11,11 +12,8 @@ function QRCode({ value: string; showAvatar?: boolean; }) { - const { primary, secondary, foreground } = useThemeColor( - "primary", - "secondary", - "foreground", - ); + const { primary, secondary } = useThemeColor("primary", "secondary"); + const { background, foreground } = THEME_COLORS.light; const dimensions = Dimensions.get("window"); const qrSize = Math.round((dimensions.width * 5) / 7); const avatarSize = qrSize * 0.15; @@ -28,7 +26,10 @@ function QRCode({ start={[0, 1]} end={[1, 0]} > - +