resetting state after submit (todo: add confirmation message), update posts screen after aprove or deny

This commit is contained in:
Will Baumbach
2025-08-05 10:22:48 -05:00
parent e49674a755
commit 813cb44637
7 changed files with 107 additions and 37 deletions

View File

@@ -1,6 +1,6 @@
import Ionicons from '@expo/vector-icons/Ionicons';
import { Tabs } from 'expo-router';
import React from 'react';
import Ionicons from '@expo/vector-icons/Ionicons'
import { Tabs } from 'expo-router'
import React from 'react'
export default function TabLayout() {
return (
@@ -8,29 +8,49 @@ export default function TabLayout() {
screenOptions={{
tabBarActiveTintColor: '#ffd33d',
headerStyle: {
backgroundColor: '#25292e',
backgroundColor: '#25292e'
},
headerShadowVisible: false,
headerTintColor: '#fff',
tabBarStyle: {
backgroundColor: '#25292e',
},
}}>
<Tabs.Screen name="index" options={{
title: 'Home', headerShown: false, tabBarIcon: ({ color, focused }) => (
<Ionicons name={focused ? 'home-sharp' : 'home-outline'} color={color} size={24} />
)
}} />
<Tabs.Screen name="posts" options={{
title: 'Posts', headerShown: false, tabBarIcon: ({ color, focused }) => (
<Ionicons name={focused ? 'rocket-sharp' : 'rocket-outline'} size={24} color={color} />
)
}} />
<Tabs.Screen name="login" options={{
title: 'Login', headerShown: false, tabBarIcon: ({ color, focused }) => (
<Ionicons name={focused ? 'person-circle-sharp' : 'person-circle-outline'} size={24} color={color} />
)
}} />
backgroundColor: '#25292e'
}
}}
>
<Tabs.Screen
name='index'
options={{
title: 'Home',
headerShown: false,
tabBarIcon: ({ color, focused }) => (
<Ionicons name={focused ? 'home-sharp' : 'home-outline'} color={color} size={24} />
)
}}
/>
<Tabs.Screen
name='posts'
options={{
title: 'Posts',
headerShown: false,
tabBarIcon: ({ color, focused }) => (
<Ionicons name={focused ? 'rocket-sharp' : 'rocket-outline'} size={24} color={color} />
)
}}
/>
<Tabs.Screen
name='login'
options={{
title: 'Login',
headerShown: false,
tabBarIcon: ({ color, focused }) => (
<Ionicons
name={focused ? 'person-circle-sharp' : 'person-circle-outline'}
size={24}
color={color}
/>
)
}}
/>
</Tabs>
);
)
}