This commit is contained in:
Jorrin
2024-03-18 23:06:38 +01:00
parent ac0b23db62
commit 21ada8162e
6 changed files with 12804 additions and 885 deletions

View File

@@ -1,5 +1,4 @@
import React from "react";
import { useTheme } from "tamagui";
interface SvgTabBarIconProps {
@@ -12,7 +11,9 @@ export default function SvgTabBarIcon({
children,
}: SvgTabBarIconProps) {
const theme = useTheme();
const fillColor = focused ? theme.tabBarIconFocused.val : theme.tabBarIcon.val;
const fillColor = focused
? theme.tabBarIconFocused.val
: theme.tabBarIcon.val;
if (React.isValidElement(children)) {
return React.cloneElement(children, { fillColor } as React.Attributes);