We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae13be commit f44a8e1Copy full SHA for f44a8e1
1 file changed
example/src/app/(tabs)/_layout.tsx
@@ -1,11 +1,12 @@
1
import FontAwesome from '@expo/vector-icons/FontAwesome';
2
import { Tabs } from 'expo-router';
3
import { useCallback } from 'react';
4
+import type { ColorValue } from 'react-native';
5
6
export default function TabLayout() {
7
const renderBarIcon = useCallback(
8
(name: keyof typeof FontAwesome.glyphMap) => {
- return ({ color }: { color: string }) => (
9
+ return ({ color }: { color: ColorValue }) => (
10
<FontAwesome size={28} name={name} color={color} />
11
);
12
},
0 commit comments