Skip to content

Commit 95b4b41

Browse files
committed
openai install and screen details
1 parent f411350 commit 95b4b41

9 files changed

+164
-112
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ npm-debug.*
1111
web-build/
1212
# expo router
1313
expo-env.d.ts
14+
.env
1415

1516

1617

app/(tabs)/_layout.tsx

+2-7
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,14 @@ export default function TabLayout() {
1313
name="index"
1414
options={{
1515
title: 'Tab One',
16-
tabBarIcon: ({ color }) => <TabBarIcon name="code" color={color} />,
17-
headerRight: () => (
18-
<Link href="/modal" asChild>
19-
<HeaderButton />
20-
</Link>
21-
),
16+
tabBarIcon: ({ color }) => <TabBarIcon name="home" color={color} />,
2217
}}
2318
/>
2419
<Tabs.Screen
2520
name="two"
2621
options={{
2722
title: 'Tab Two',
28-
tabBarIcon: ({ color }) => <TabBarIcon name="code" color={color} />,
23+
tabBarIcon: ({ color }) => <TabBarIcon name="history" color={color} />,
2924
}}
3025
/>
3126
</Tabs>

app/(tabs)/index.tsx

+5-16
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
import { Stack } from 'expo-router';
2-
import { StyleSheet, View } from 'react-native';
3-
4-
import { ScreenContent } from '~/components/ScreenContent';
2+
import { Text, View } from 'react-native';
53

64
export default function Home() {
75
return (
8-
<>
9-
<Stack.Screen options={{ title: 'Tab One' }} />
10-
<View style={styles.container}>
11-
<ScreenContent path="app/(tabs)/index.tsx" title="Tab One" />
12-
</View>
13-
</>
6+
<View className="flex-1">
7+
<Stack.Screen options={{ title: 'ChefBuddy' }} />
8+
<Text className="p-2 text-xl font-bold">Hello there</Text>
9+
</View>
1410
);
1511
}
16-
17-
const styles = StyleSheet.create({
18-
container: {
19-
flex: 1,
20-
padding: 24,
21-
},
22-
});

app/+html.tsx

-46
This file was deleted.

app/+not-found.tsx

-23
This file was deleted.

app/_layout.tsx

-6
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@ import '../global.css';
22

33
import { Stack } from 'expo-router';
44

5-
export const unstable_settings = {
6-
// Ensure that reloading on `/modal` keeps a back button present.
7-
initialRouteName: '(tabs)',
8-
};
9-
105
export default function RootLayout() {
116
return (
127
<Stack>
138
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
14-
<Stack.Screen name="modal" options={{ presentation: 'modal' }} />
159
</Stack>
1610
);
1711
}

app/modal.tsx

-13
This file was deleted.

package-lock.json

+153
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)