mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 09:43:25 +00:00
19 lines
444 B
TypeScript
19 lines
444 B
TypeScript
import { FontAwesome } from '@expo/vector-icons';
|
|
|
|
import useTailwind from '../app/hooks/useTailwind';
|
|
|
|
type Props = {
|
|
focused?: boolean;
|
|
} & React.ComponentProps<typeof FontAwesome>;
|
|
|
|
export default function TabBarIcon({ focused, ...rest }: Props) {
|
|
const { colors } = useTailwind();
|
|
return (
|
|
<FontAwesome
|
|
color={focused ? colors.purple[300] : colors.shade[300]}
|
|
size={24}
|
|
{...rest}
|
|
/>
|
|
);
|
|
}
|