Skip to content

Commit

Permalink
add tab bars
Browse files Browse the repository at this point in the history
  • Loading branch information
arnestrickmann committed Mar 20, 2024
1 parent 37739d3 commit 08e2a54
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 5 deletions.
6 changes: 3 additions & 3 deletions frontend/app/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export default function TabLayout() {
<Tabs.Screen
name="index"
options={{
title: 'Tab One',
tabBarIcon: ({ color }) => <TabBarIcon name="code" color={color} />,
title: 'Belly Chat',
tabBarIcon: ({ color }) => <TabBarIcon name="comment" color={color} />,
headerRight: () => (
<Link href="/modal" asChild>
<Pressable>
{({ pressed }) => (
{({ pressed }: any) => (
<FontAwesome
name="info-circle"
size={25}
Expand Down
3 changes: 1 addition & 2 deletions frontend/app/(tabs)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import { Text, View } from '@/components/Themed';
export default function TabOneScreen() {
return (
<View style={styles.container}>
<Text style={styles.title}>Tab One</Text>
<Text style={styles.title}>Belly</Text>
<View style={styles.separator} lightColor="#eee" darkColor="rgba(255,255,255,0.1)" />
<EditScreenInfo path="app/(tabs)/index.tsx" />
</View>
);
}
Expand Down
51 changes: 51 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"react-native": "0.73.6",
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "~3.29.0",
"react-native-vector-icons": "^10.0.3",
"react-native-web": "~0.19.6"
},
"devDependencies": {
Expand Down

0 comments on commit 08e2a54

Please sign in to comment.