diff options
Diffstat (limited to 'src/view/routes/index.tsx')
-rw-r--r-- | src/view/routes/index.tsx | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/view/routes/index.tsx b/src/view/routes/index.tsx index 112452196..24d47a93c 100644 --- a/src/view/routes/index.tsx +++ b/src/view/routes/index.tsx @@ -54,20 +54,24 @@ const tabBarScreenOptions = ({ route: RouteProp<ParamListBase, string> }) => ({ headerShown: false, - tabBarIcon: (_state: {focused: boolean; color: string; size: number}) => { + tabBarIcon: (state: {focused: boolean; color: string; size: number}) => { switch (route.name) { case 'Home': - return <FontAwesomeIcon icon="house" /> + return <FontAwesomeIcon icon="house" style={{color: state.color}} /> case 'Search': - return <FontAwesomeIcon icon="magnifying-glass" /> + return ( + <FontAwesomeIcon + icon="magnifying-glass" + style={{color: state.color}} + /> + ) case 'Notifications': - return <FontAwesomeIcon icon="bell" /> + return <FontAwesomeIcon icon="bell" style={{color: state.color}} /> case 'Menu': - return <FontAwesomeIcon icon="bars" /> + return <FontAwesomeIcon icon="bars" style={{color: state.color}} /> default: - return <FontAwesomeIcon icon="bars" /> + return <FontAwesomeIcon icon="bars" style={{color: state.color}} /> } - // return <Text>{route.name?.[0] || ''}</Text> }, }) |