Skip to content

Commit fd3d698

Browse files
committed
fix: fix example
1 parent d9d3075 commit fd3d698

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed

example/expo-router/app/_layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { BottomSheetBackdropProps } from '@gorhom/bottom-sheet';
33
import { createBottomSheetNavigator } from '@appandflow/react-navigation-bottom-sheet';
44
import { withLayoutContext } from 'expo-router';
55
import { GestureHandlerRootView } from 'react-native-gesture-handler';
6-
import type { BottomSheetParamList } from '../lib/types';
6+
import type { BottomSheetParamList } from '../utils/types';
77

88
const BottomSheetNavigator = createBottomSheetNavigator<BottomSheetParamList>();
99

example/expo-router/app/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Button, Text, View } from 'react-native';
2-
import { styles } from '../lib/styles';
2+
import { styles } from '../utils/styles';
33
import { Link, useRouter } from 'expo-router';
44

55
export default function HomeScreen() {

example/expo-router/app/sheet-screen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Button, Text, View } from 'react-native';
22
import { useBottomSheetNavigation } from '@appandflow/react-navigation-bottom-sheet';
3-
import { styles } from '../lib/styles';
4-
import type { BottomSheetParamList } from '../lib/types';
3+
import { styles } from '../utils/styles';
4+
import type { BottomSheetParamList } from '../utils/types';
55
import { useLocalSearchParams, usePathname, useRouter } from 'expo-router';
66

77
export default function SheetScreen() {
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { StyleSheet } from 'react-native';
2+
3+
export const styles = StyleSheet.create({
4+
container: {
5+
flex: 1,
6+
alignItems: 'center',
7+
justifyContent: 'center',
8+
},
9+
content: {
10+
marginVertical: 20,
11+
},
12+
spacer: {
13+
margin: 5,
14+
},
15+
button: {
16+
color: 'blue',
17+
},
18+
});

example/expo-router/utils/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export type BottomSheetParamList = {
2+
'index': undefined;
3+
'sheet': { id: number };
4+
'big-sheet': { id: number };
5+
};

0 commit comments

Comments
 (0)