mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 13:33:26 +00:00
upgrade to v4
This commit is contained in:
16
apps/mobile/app/components/TabBarIcon.tsx
Normal file
16
apps/mobile/app/components/TabBarIcon.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
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}
|
||||
/>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user