Files
native-app/apps/expo/src/components/TabBarIcon.tsx
2024-03-18 23:06:38 +01:00

13 lines
404 B
TypeScript

import { FontAwesome } from "@expo/vector-icons";
import { useTheme } from "tamagui";
type Props = {
focused?: boolean;
} & React.ComponentProps<typeof FontAwesome>;
export default function TabBarIcon({ focused, ...rest }: Props) {
const theme = useTheme();
const color = focused ? theme.tabBarIconFocused.val : theme.tabBarIcon.val;
return <FontAwesome color={color} size={24} {...rest} />;
}