mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 10:23:24 +00:00
22 lines
471 B
TypeScript
22 lines
471 B
TypeScript
import { FontAwesome } from '@expo/vector-icons';
|
|
import Colors from '../constants/Colors';
|
|
|
|
type Props = {
|
|
focused?: boolean;
|
|
color?: string;
|
|
} & React.ComponentProps<typeof FontAwesome>;
|
|
|
|
export default function TabBarIcon({
|
|
color = Colors.dark.shade300,
|
|
focused,
|
|
...rest
|
|
}: Props) {
|
|
return (
|
|
<FontAwesome
|
|
color={color || (focused ? Colors.dark.purple300 : Colors.dark.shade300)}
|
|
size={24}
|
|
{...rest}
|
|
/>
|
|
);
|
|
}
|