Skip to content

Commit 98cef90

Browse files
committed
chore: expo-examples
1 parent 611fa1b commit 98cef90

16 files changed

Lines changed: 73 additions & 598 deletions

expo-example/app/(tabs)/_layout.tsx

Lines changed: 0 additions & 49 deletions
This file was deleted.

expo-example/app/[pageId].tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { useLocalSearchParams, Stack } from 'expo-router';
2-
import { PagesList } from '@example/pages';
2+
import { PagesList, type PageItem } from '@example/pages';
33
import { View, Text, StyleSheet } from 'react-native';
44

55
export default function PageRoute() {
66
const { pageId } = useLocalSearchParams<{ pageId: string }>();
77

8-
const page = PagesList.find((p) => p.id === pageId);
8+
const page = PagesList.find((p: PageItem) => p.id === pageId);
99

1010
if (!page) {
1111
return (

expo-example/app/_layout.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ export default function RootLayout() {
2222
headerShown: true,
2323
}}
2424
/>
25-
<Stack.Screen
26-
name="modal"
27-
options={{ presentation: 'modal', title: 'Modal' }}
28-
/>
2925
</Stack>
3026
<StatusBar style="auto" />
3127
</ThemeProvider>

0 commit comments

Comments
 (0)