Skip to content

Commit

Permalink
initiale styling for custom bottom navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-zou18 committed Jun 26, 2024
1 parent af27e82 commit 21246a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lifescape-app/components/general/TabBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type TabBarProps = {

const TabBar = ({ state, descriptors, navigation }: TabBarProps) => {
return (
<View style={{ flexDirection: 'row' }}>
<View className='flex flex-row justify-between items-center absolute bottom-5 max-w-[95vw] mx-[20px] py-4 bg-black'>
{state.routes.map((route:any, index:number) => {
const { options } = descriptors[route.key];
const label =
Expand Down Expand Up @@ -49,6 +49,7 @@ const TabBar = ({ state, descriptors, navigation }: TabBarProps) => {
onLongPress={onLongPress}
style={{ flex: 1 }}
key={route.key}
className='flex items-center'
>
<Text style={{ color: isFocused ? '#673ab7' : '#222' }}>
{label}
Expand Down

0 comments on commit 21246a0

Please sign in to comment.