mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:33:26 +00:00
18 lines
384 B
TypeScript
18 lines
384 B
TypeScript
import { FontAwesome } from '@expo/vector-icons';
|
|
|
|
import Colors from '@/constants/Colors';
|
|
|
|
type Props = {
|
|
focused?: boolean;
|
|
} & React.ComponentProps<typeof FontAwesome>;
|
|
|
|
export default function TabBarIcon({ focused, ...rest }: Props) {
|
|
return (
|
|
<FontAwesome
|
|
color={focused ? Colors.primary[300] : Colors.secondary[300]}
|
|
size={24}
|
|
{...rest}
|
|
/>
|
|
);
|
|
}
|