create-expo-stack 2.10.0-next.8ab34b2 → 2.10.0-next.ad06c40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import '../global.css';
|
|
2
2
|
import 'expo-dev-client';
|
|
3
3
|
import { ThemeProvider as NavThemeProvider } from '@react-navigation/native';
|
|
4
|
-
import { Icon } from '@roninoss/icons';
|
|
5
4
|
<% if (props.stylingPackage?.options.selectedComponents.includes('action-sheet')) { %>
|
|
6
5
|
import { ActionSheetProvider } from '@expo/react-native-action-sheet';
|
|
7
6
|
<% } %>
|
|
8
7
|
<% if (props.stylingPackage?.options.selectedComponents.includes('bottom-sheet')) { %>
|
|
9
8
|
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet';
|
|
10
9
|
<% } %>
|
|
11
|
-
import {
|
|
10
|
+
import { Stack } from 'expo-router';
|
|
12
11
|
import { StatusBar } from 'expo-status-bar';
|
|
13
|
-
import { Pressable, View } from 'react-native';
|
|
14
12
|
<% if (props.stylingPackage?.options.selectedComponents.includes('bottom-sheet')) { %>
|
|
15
13
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
16
14
|
<% } %>
|
|
17
15
|
|
|
18
16
|
import { ThemeToggle } from '~/components/nativewindui/ThemeToggle';
|
|
19
|
-
import { cn } from '~/lib/cn';
|
|
20
17
|
import { useColorScheme, useInitialAndroidBarSync } from '~/lib/useColorScheme';
|
|
21
18
|
import { NAV_THEME } from '~/theme';
|
|
22
19
|
|
|
@@ -44,7 +41,7 @@ export default function RootLayout() {
|
|
|
44
41
|
<% } %>
|
|
45
42
|
<NavThemeProvider value={NAV_THEME[colorScheme]}>
|
|
46
43
|
<Stack screenOptions={SCREEN_OPTIONS}>
|
|
47
|
-
<Stack.Screen name="(
|
|
44
|
+
<Stack.Screen name="(drawer)" options={DRAWER_OPTIONS} />
|
|
48
45
|
<Stack.Screen name="modal" options={MODAL_OPTIONS} />
|
|
49
46
|
</Stack>
|
|
50
47
|
</NavThemeProvider>
|
|
@@ -67,21 +64,6 @@ const DRAWER_OPTIONS = {
|
|
|
67
64
|
headerShown: false,
|
|
68
65
|
} as const;
|
|
69
66
|
|
|
70
|
-
function SettingsIcon() {
|
|
71
|
-
const { colors } = useColorScheme();
|
|
72
|
-
return (
|
|
73
|
-
<Link href="/modal" asChild>
|
|
74
|
-
<Pressable className="opacity-80">
|
|
75
|
-
{({ pressed }) => (
|
|
76
|
-
<View className={cn(pressed ? 'opacity-50' : 'opacity-90')}>
|
|
77
|
-
<Icon name="cog-outline" color={colors.foreground} />
|
|
78
|
-
</View>
|
|
79
|
-
)}
|
|
80
|
-
</Pressable>
|
|
81
|
-
</Link>
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
67
|
const MODAL_OPTIONS = {
|
|
86
68
|
presentation: 'modal',
|
|
87
69
|
animation: 'fade_from_bottom', // for android
|