about summary refs log tree commit diff
path: root/src/view/routes/index.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-07-21 13:07:24 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-07-21 13:07:24 -0500
commit28dbc5f5e614b3caf08d36a7edaaf19a0ee0f0bc (patch)
tree073a42ff18ee286ace5cf701f859d32842da684c /src/view/routes/index.tsx
parent139c9deb75d54d72cc819f5308001ec66d3962bc (diff)
downloadvoidsky-28dbc5f5e614b3caf08d36a7edaaf19a0ee0f0bc.tar.zst
Add the ability to navigate to posts within a thread
Diffstat (limited to 'src/view/routes/index.tsx')
-rw-r--r--src/view/routes/index.tsx18
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>
   },
 })