File tree Expand file tree Collapse file tree 5 files changed +27
-4
lines changed
Expand file tree Collapse file tree 5 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { BottomSheetBackdropProps } from '@gorhom/bottom-sheet';
33import { createBottomSheetNavigator } from '@appandflow/react-navigation-bottom-sheet' ;
44import { withLayoutContext } from 'expo-router' ;
55import { GestureHandlerRootView } from 'react-native-gesture-handler' ;
6- import type { BottomSheetParamList } from '../lib /types' ;
6+ import type { BottomSheetParamList } from '../utils /types' ;
77
88const BottomSheetNavigator = createBottomSheetNavigator < BottomSheetParamList > ( ) ;
99
Original file line number Diff line number Diff line change 11import { Button , Text , View } from 'react-native' ;
2- import { styles } from '../lib /styles' ;
2+ import { styles } from '../utils /styles' ;
33import { Link , useRouter } from 'expo-router' ;
44
55export default function HomeScreen ( ) {
Original file line number Diff line number Diff line change 11import { Button , Text , View } from 'react-native' ;
22import { 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' ;
55import { useLocalSearchParams , usePathname , useRouter } from 'expo-router' ;
66
77export default function SheetScreen ( ) {
Original file line number Diff line number Diff line change 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+ } ) ;
Original file line number Diff line number Diff line change 1+ export type BottomSheetParamList = {
2+ 'index' : undefined ;
3+ 'sheet' : { id : number } ;
4+ 'big-sheet' : { id : number } ;
5+ } ;
You can’t perform that action at this time.
0 commit comments