File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ export default function TabLayout() {
29
29
name = "index"
30
30
options = { {
31
31
title : "Home" ,
32
- tabBarIcon : ( { color } ) => < TabBarIcon name = "code" color = { color } /> ,
32
+ tabBarIcon : ( { color } : { color : string } ) => (
33
+ < TabBarIcon name = "code" color = { color } />
34
+ ) ,
33
35
headerRight : ( ) => (
34
36
< Link href = "/modal" asChild >
35
37
< Pressable >
@@ -50,7 +52,7 @@ export default function TabLayout() {
50
52
name = "jobs"
51
53
options = { {
52
54
title : "Jobs" ,
53
- tabBarIcon : ( { color } ) => (
55
+ tabBarIcon : ( { color } : { color : string } ) => (
54
56
< TabBarIcon name = "briefcase" color = { color } />
55
57
) ,
56
58
} }
@@ -59,14 +61,18 @@ export default function TabLayout() {
59
61
name = "settings"
60
62
options = { {
61
63
title : "Settings" ,
62
- tabBarIcon : ( { color } ) => < TabBarIcon name = "cog" color = { color } /> ,
64
+ tabBarIcon : ( { color } : { color : string } ) => (
65
+ < TabBarIcon name = "cog" color = { color } />
66
+ ) ,
63
67
} }
64
68
/>
65
69
< Tabs . Screen
66
70
name = "cellular"
67
71
options = { {
68
72
title : "Cellular" ,
69
- tabBarIcon : ( { color } ) => < TabBarIcon name = "phone" color = { color } /> ,
73
+ tabBarIcon : ( { color } : { color : string } ) => (
74
+ < TabBarIcon name = "phone" color = { color } />
75
+ ) ,
70
76
} }
71
77
/>
72
78
</ Tabs >
You can’t perform that action at this time.
0 commit comments