Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

Stack.tsx

600 lines22.3 KB

1import {
2 createPathConfigForStaticNavigation,
3 getPathFromState,
4 NavigationState,
5 StackActions,
6 useNavigation,
7} from "@react-navigation/native";
8import {
9 createNativeStackNavigator,
10 createNativeStackScreen,
11 type NativeStackNavigationOptions,
12} from "@react-navigation/native-stack";
13import { useEffect, useRef } from "react";
14import { DynamicColorIOS, Platform, Pressable, ScrollView, StyleSheet } from "react-native";
15import { useResolveClassNames } from "uniwind";
16​
17import { AppText as Text } from "./components/AppText";
18import { getCompactBrandHeaderOptions } from "./components/CompactBrandTitle";
19import { ArchivedThreadsRouteScreen } from "./features/archive/ArchivedThreadsRouteScreen";
20import { useAgentNotificationNavigation } from "./features/agent-awareness/notificationNavigation";
21import { ConnectOnboardingRouteScreen } from "./features/cloud/ConnectOnboardingRouteScreen";
22import { useConnectOnboardingNavigation } from "./features/cloud/connectOnboardingNavigation";
23import { ThreadFilesTreeScreen, ThreadFileScreen } from "./features/files/ThreadFilesRouteScreen";
24import { AdaptiveWorkspaceLayout } from "./features/layout/AdaptiveWorkspaceLayout";
25import { HardwareKeyboardCommandProvider } from "./features/keyboard/HardwareKeyboardCommandProvider";
26import { ReviewCommentComposerSheet } from "./features/review/ReviewCommentComposerSheet";
27import { ReviewSheet } from "./features/review/ReviewSheet";
28import { ThreadTerminalRouteScreen } from "./features/terminal/ThreadTerminalRouteScreen";
29import { GitBranchesSheet } from "./features/threads/git/GitBranchesSheet";
30import { GitCommitSheet } from "./features/threads/git/GitCommitSheet";
31import { GitConfirmSheet } from "./features/threads/git/GitConfirmSheet";
32import { GitOverviewSheet } from "./features/threads/git/GitOverviewSheet";
33import { ThreadRouteScreen } from "./features/threads/ThreadRouteScreen";
34import { ConnectionsRouteScreen } from "./features/connection/ConnectionsRouteScreen";
35import { ConnectionsNewRouteScreen } from "./features/connection/ConnectionsNewRouteScreen";
36import { HomeRouteScreen } from "./features/home/HomeRouteScreen";
37import { AddProjectDestinationRoute } from "./features/projects/AddProjectDestinationRoute";
38import { AddProjectLocalRoute } from "./features/projects/AddProjectLocalRoute";
39import { AddProjectRepositoryRoute } from "./features/projects/AddProjectRepositoryRoute";
40import { AddProjectSourceRoute } from "./features/projects/AddProjectSourceRoute";
41import { NewTaskDraftRouteScreen } from "./features/threads/NewTaskDraftRouteScreen";
42import { NewTaskFlowProvider } from "./features/threads/new-task-flow-provider";
43import { NewTaskRouteScreen } from "./features/threads/NewTaskRouteScreen";
44import { SettingsAppearanceRouteScreen } from "./features/settings/SettingsAppearanceRouteScreen";
45import { SettingsClientStorageRouteScreen } from "./features/settings/SettingsClientStorageRouteScreen";
46import { SettingsAuthRouteScreen } from "./features/settings/SettingsAuthRouteScreen";
47import { SettingsEnvironmentsRouteScreen } from "./features/settings/SettingsEnvironmentsRouteScreen";
48import { SettingsLegalRouteScreen } from "./features/settings/SettingsLegalRouteScreen";
49import { SettingsProjectGroupingRouteScreen } from "./features/settings/SettingsProjectGroupingRouteScreen";
50import { UsageRouteScreen } from "./features/usage/UsageRouteScreen";
51import { SettingsRouteScreen } from "./features/settings/SettingsRouteScreen";
52import { ShowcaseCaptureCoordinator } from "./features/showcase/ShowcaseCaptureCoordinator";
53import {
54 SettingsLegalDocumentCloseHeaderButton,
55 SettingsLegalDocumentExternalHeaderButton,
56} from "./features/settings/components/SettingsLegalDocumentRouteScreen";
57import { useAppShortcuts } from "./features/shortcuts/useAppShortcuts";
58import { useIncomingShare } from "./features/sharing/IncomingShareProvider";
59import {
60 EMPTY_INCOMING_SHARE_PRESENTATION_STATE,
61 transitionIncomingSharePresentation,
62} from "./features/sharing/incoming-share-presentation";
63import { NATIVE_LIQUID_GLASS_SUPPORTED } from "./native/native-glass";
64import { nativeHeaderScrollEdgeEffects } from "./native/StackHeader";
65import { useThreadOutboxDrain } from "./state/use-thread-outbox-drain";
66​
67const HEADER_SCROLL_EDGE_EFFECTS = nativeHeaderScrollEdgeEffects(Platform.OS, Platform.Version);
68​
69// Matches --color-sheet in global.css (light/dark). DynamicColorIOS lets the header
70// background stay STATIC config while still adapting to appearance changes.
71const SHEET_BACKGROUND_COLOR =
72 Platform.OS === "ios"
73 ? DynamicColorIOS({ light: "rgba(242, 242, 247, 0.98)", dark: "rgba(14, 14, 14, 0.98)" })
74 : undefined;
75​
76type AppScreenOptions = NativeStackNavigationOptions & {
77 readonly unstable_navigationItemStyle?: "editor";
78};
79​
80// Shared header presets. Screens only override genuinely dynamic values (titles,
81// subtitles, toolbar items, search callbacks) via NativeStackScreenOptions.
82//
83// GLASS: transparent header over the screen's primary scroll view on supported
84// iOS versions. Pre-glass iOS gets the same solid material as internal-scroll
85// surfaces so content is laid out below the bar instead of underlapping it.
86const GLASS_HEADER_OPTIONS: AppScreenOptions = {
87 headerBackButtonDisplayMode: "minimal",
88 headerBackTitle: "",
89 headerLargeTitle: false,
90 headerShadowVisible: false,
91 headerShown: true,
92 headerStyle: NATIVE_LIQUID_GLASS_SUPPORTED
93 ? { backgroundColor: "transparent" }
94 : SHEET_BACKGROUND_COLOR !== undefined
95 ? { backgroundColor: SHEET_BACKGROUND_COLOR as unknown as string }
96 : undefined,
97 headerTitleStyle: { fontSize: 18, fontWeight: "800" },
98 headerTransparent: NATIVE_LIQUID_GLASS_SUPPORTED,
99 scrollEdgeEffects: NATIVE_LIQUID_GLASS_SUPPORTED ? HEADER_SCROLL_EDGE_EFFECTS : undefined,
100 unstable_navigationItemStyle: NATIVE_LIQUID_GLASS_SUPPORTED ? "editor" : undefined,
101};
102​
103// SOLID: opaque sheet-colored header for surfaces whose content scrolls internally
104// (file viewer, terminal, review) — there is nothing for glass to sample there.
105const SOLID_HEADER_OPTIONS: AppScreenOptions = {
106 headerBackButtonDisplayMode: "minimal",
107 headerBackTitle: "",
108 headerLargeTitle: false,
109 headerShadowVisible: false,
110 headerShown: true,
111 headerStyle:
112 SHEET_BACKGROUND_COLOR !== undefined
113 ? // native-stack types this as `string`, but the native side accepts any
114 // ColorValue including DynamicColorIOS.
115 { backgroundColor: SHEET_BACKGROUND_COLOR as unknown as string }
116 : undefined,
117 headerTitleStyle: { fontSize: 18, fontWeight: "800" },
118 headerTransparent: false,
119 unstable_navigationItemStyle: Platform.OS === "ios" ? "editor" : undefined,
120};
121​
122// Solid header variant for screens inside sheets (centered title, no editor style).
123const SHEET_SOLID_HEADER_OPTIONS: AppScreenOptions = {
124 ...SOLID_HEADER_OPTIONS,
125 unstable_navigationItemStyle: undefined,
126};
127​
128const LEGAL_DOCUMENT_HEADER_OPTIONS: AppScreenOptions = {
129 ...SHEET_SOLID_HEADER_OPTIONS,
130 headerBackVisible: false,
131 headerLeft: SettingsLegalDocumentCloseHeaderButton,
132 headerRight: () => <SettingsLegalDocumentExternalHeaderButton />,
133 presentation: "fullScreenModal",
134};
135​
136const SettingsContentStack = createNativeStackNavigator({
137 initialRouteName: "Settings",
138 screenOptions: {
139 ...GLASS_HEADER_OPTIONS,
140 // Sheets read better with the iOS-default centered title (no editor style).
141 unstable_navigationItemStyle: undefined,
142 },
143 screens: {
144 Settings: createNativeStackScreen({
145 screen: SettingsRouteScreen,
146 linking: "",
147 options: {
148 title: "Settings",
149 },
150 }),
151 SettingsEnvironments: createNativeStackScreen({
152 screen: SettingsEnvironmentsRouteScreen,
153 linking: "environments",
154 options: {
155 title: "Environments",
156 },
157 }),
158 SettingsEnvironmentNew: createNativeStackScreen({
159 screen: ConnectionsNewRouteScreen,
160 linking: "environment-new",
161 options: {
162 title: "Add Environment",
163 },
164 }),
165 SettingsArchive: createNativeStackScreen({
166 screen: ArchivedThreadsRouteScreen,
167 linking: "archive",
168 options: {
169 title: "Archived Threads",
170 },
171 }),
172 SettingsAppearance: createNativeStackScreen({
173 screen: SettingsAppearanceRouteScreen,
174 linking: "appearance",
175 options: {
176 title: "Appearance",
177 },
178 }),
179 SettingsProjectGrouping: createNativeStackScreen({
180 screen: SettingsProjectGroupingRouteScreen,
181 linking: "project-grouping",
182 options: {
183 title: "Project Grouping",
184 },
185 }),
186 SettingsClientStorage: createNativeStackScreen({
187 screen: SettingsClientStorageRouteScreen,
188 linking: "client-storage",
189 options: {
190 title: "Client Storage",
191 },
192 }),
193 SettingsUsage: createNativeStackScreen({
194 screen: UsageRouteScreen,
195 linking: "usage",
196 options: {
197 title: "Usage",
198 },
199 }),
200 },
201});
202​
203// The outer stack never owns visible chrome. Settings routes render inside a
204// nested stack whose native header remains mounted, while Clerk owns auth chrome.
205// Keeping bar visibility invariant avoids iOS 26's headerless-to-headered jump.
206const SettingsSheetStack = createNativeStackNavigator({
207 initialRouteName: "SettingsContent",
208 screenOptions: {
209 headerShown: false,
210 },
211 screens: {
212 SettingsContent: createNativeStackScreen({
213 screen: SettingsContentStack,
214 linking: "",
215 }),
216 SettingsAuth: createNativeStackScreen({
217 screen: SettingsAuthRouteScreen,
218 linking: "auth",
219 }),
220 SettingsWaitlist: createNativeStackScreen({
221 // Keep the old deep link working after the Connect GA launch.
222 screen: SettingsAuthRouteScreen,
223 linking: "waitlist",
224 }),
225 },
226});
227​
228// Thread routes live FLAT in the root stack (not in a nested navigator). A nested
229// stack means a second UINavigationController with its own UINavigationBar, which
230// breaks iOS 26's shared-header morphing between Home and Thread (each pair inside
231// one bar morphs; across two bars the whole screen slides). Flat linking paths keep
232// the same deep-link URLs the nested config produced.
233const THREAD_LINKING_PREFIX = "threads/:environmentId/:threadId";
234​
235// New-task / add-project flow: nested navigator inside the formSheet (Settings-sheet
236// pattern — a plain formSheet screen cannot render a stack header; the header and
237// in-sheet pushes come from this nested stack).
238const NewTaskSheetStack = createNativeStackNavigator({
239 initialRouteName: "NewTask",
240 screenOptions: {
241 ...GLASS_HEADER_OPTIONS,
242 // Sheets read better with the iOS-default centered title (no editor style).
243 unstable_navigationItemStyle: undefined,
244 },
245 screens: {
246 NewTask: createNativeStackScreen({
247 screen: NewTaskRouteScreen,
248 linking: "",
249 options: {
250 title: "Choose project",
251 },
252 }),
253 NewTaskDraft: createNativeStackScreen({
254 screen: NewTaskDraftRouteScreen,
255 linking: "draft",
256 // The draft composer has no scroll view for glass to sample; a solid
257 // header also lays the content out below the bar (no manual inset).
258 options: SHEET_SOLID_HEADER_OPTIONS,
259 }),
260 AddProject: createNativeStackScreen({
261 screen: AddProjectSourceRoute,
262 linking: "add-project",
263 options: {
264 title: "Add Project",
265 },
266 }),
267 AddProjectRepository: createNativeStackScreen({
268 screen: AddProjectRepositoryRoute,
269 linking: "add-project/repository",
270 }),
271 AddProjectDestination: createNativeStackScreen({
272 screen: AddProjectDestinationRoute,
273 linking: "add-project/destination",
274 }),
275 AddProjectLocal: createNativeStackScreen({
276 screen: AddProjectLocalRoute,
277 linking: "add-project/local",
278 }),
279 },
280});
281​
282// Routes presented as sheets/overlays ON TOP of the workspace. They must not
283// influence the adaptive workspace layout: opening Settings over Home should
284// not flip the sidebar in or change the active thread.
285const WORKSPACE_OVERLAY_ROUTES = new Set([
286 "ConnectOnboarding",
287 "Connections",
288 "ConnectionsNew",
289 "GitBranches",
290 "GitCommit",
291 "GitConfirm",
292 "GitOverview",
293 "NewTaskSheet",
294 "SettingsLegal",
295 "SettingsSheet",
296 "ThreadReviewComment",
297]);
298​
299/**
300 * Pathname of the topmost NON-overlay route — the screen the workspace is
301 * actually "on", regardless of any sheets floating above it.
302 */
303function workspacePathFromState(state: NavigationState): string {
304 const routes = state.routes.filter((route) => !WORKSPACE_OVERLAY_ROUTES.has(route.name));
305 const effectiveState =
306 routes.length > 0 && routes.length !== state.routes.length
307 ? ({ ...state, routes, index: routes.length - 1 } as NavigationState)
308 : state;
309 const path = getPathFromState(effectiveState, navigationPathConfig);
310 return path.startsWith("/") ? path : `/${path}`;
312​
313// The drain hook subscribes to the outbox, all thread shells, projects, and
314// connection statuses. Hosting it in a null-rendering leaf keeps those
315// updates from re-rendering RootStackLayout (and with it every screen) on
316// each enqueue, shell change, or reconnect.
317function ThreadOutboxDrainWorker() {
318 useThreadOutboxDrain();
319 return null;
321​
322function RootStackLayout(props: {
323 readonly children: React.ReactNode;
324 readonly state: NavigationState;
325}) {
326 const navigation = useNavigation();
327 const { pendingShare } = useIncomingShare();
328 const sharePresentationRef = useRef(EMPTY_INCOMING_SHARE_PRESENTATION_STATE);
329 useAgentNotificationNavigation();
330 // Presents the T3 Connect onboarding sheet after an in-session sign-in.
331 useConnectOnboardingNavigation();
332 // Launcher app shortcuts: routes shortcut taps and tracks opened threads.
333 useAppShortcuts(props.state);
334 useEffect(() => {
335 const topRouteName = props.state.routes[props.state.index]?.name;
336 const transition = transitionIncomingSharePresentation(sharePresentationRef.current, {
337 isShareSheetPresented: topRouteName === "NewTaskSheet",
338 pendingShareId: pendingShare?.id ?? null,
339 });
340 sharePresentationRef.current = transition.state;
341 if (!transition.shareIdToPresent) {
342 return;
343 }
344 navigation.navigate("NewTaskSheet", {
345 screen: "NewTask",
346 params: { incomingShareId: transition.shareIdToPresent },
347 });
348 }, [navigation, pendingShare, props.state]);
349 // Full pathname (sheets included) for keyboard-command scoping; the
350 // workspace layout only reacts to the underlying non-overlay route.
351 const path = getPathFromState(props.state, navigationPathConfig);
352 const pathname = path.startsWith("/") ? path : `/${path}`;
353 const workspacePathname = workspacePathFromState(props.state);
354​
355 return (
356 <HardwareKeyboardCommandProvider pathname={pathname}>
357 <ThreadOutboxDrainWorker />
358 <ShowcaseCaptureCoordinator pathname={pathname} />
359 <AdaptiveWorkspaceLayout pathname={workspacePathname}>
360 {props.children}
361 </AdaptiveWorkspaceLayout>
362 </HardwareKeyboardCommandProvider>
363 );
365​
366function NotFoundScreen() {
367 const navigation = useNavigation();
368 const screenBgStyle = StyleSheet.flatten(useResolveClassNames("bg-screen"));
369 const primaryBgStyle = StyleSheet.flatten(useResolveClassNames("bg-primary"));
370 const returnHomeButtonStyle = StyleSheet.flatten([
371 {
372 borderRadius: 999,
373 paddingHorizontal: 20,
374 paddingVertical: 14,
375 },
376 primaryBgStyle,
377 ]);
378​
379 return (
380 <ScrollView
381 contentInsetAdjustmentBehavior="automatic"
382 contentContainerStyle={{
383 flexGrow: 1,
384 alignItems: "center",
385 justifyContent: "center",
386 gap: 16,
387 paddingHorizontal: 24,
388 paddingVertical: 32,
389 }}
390 style={[{ flex: 1 }, screenBgStyle]}
391 >
392 <Text className="text-3xl font-t3-bold text-foreground" selectable>
393 Route not found
394 </Text>
395 <Pressable
396 style={returnHomeButtonStyle}
397 onPress={() => navigation.dispatch(StackActions.replace("Home"))}
398 >
399 <Text className="text-base font-t3-bold text-primary-foreground">Return home</Text>
400 </Pressable>
401 </ScrollView>
402 );
404​
405export const RootStack = createNativeStackNavigator({
406 initialRouteName: "Home",
407 layout: RootStackLayout,
408 screenOptions: {
409 headerShown: false,
410 },
411 screens: {
412 Home: createNativeStackScreen({
413 screen: HomeRouteScreen,
414 linking: "",
415 options: {
416 ...GLASS_HEADER_OPTIONS,
417 contentStyle: { backgroundColor: "transparent" },
418 headerBackVisible: false,
419 ...getCompactBrandHeaderOptions(),
420 },
421 }),
422 Thread: createNativeStackScreen({
423 screen: ThreadRouteScreen,
424 linking: THREAD_LINKING_PREFIX,
425 options: GLASS_HEADER_OPTIONS,
426 }),
427 ThreadTerminal: createNativeStackScreen({
428 screen: ThreadTerminalRouteScreen,
429 linking: `${THREAD_LINKING_PREFIX}/terminal`,
430 options: SOLID_HEADER_OPTIONS,
431 }),
432 ThreadReview: createNativeStackScreen({
433 screen: ReviewSheet,
434 linking: `${THREAD_LINKING_PREFIX}/review`,
435 options: SOLID_HEADER_OPTIONS,
436 }),
437 ThreadReviewComment: createNativeStackScreen({
438 screen: ReviewCommentComposerSheet,
439 linking: `${THREAD_LINKING_PREFIX}/review-comment`,
440 options: {
441 // Android cannot host the keyboard-driven comment composer inside a
442 // formSheet; use a full-screen modal there instead.
443 presentation: Platform.OS === "android" ? "fullScreenModal" : "formSheet",
444 sheetAllowedDetents: Platform.OS === "android" ? undefined : [0.55, 0.92],
445 sheetGrabberVisible: Platform.OS !== "android",
446 },
447 }),
448 ThreadFiles: createNativeStackScreen({
449 screen: ThreadFilesTreeScreen,
450 linking: `${THREAD_LINKING_PREFIX}/files`,
451 options: {
452 ...GLASS_HEADER_OPTIONS,
453 contentStyle:
454 SHEET_BACKGROUND_COLOR !== undefined
455 ? { backgroundColor: SHEET_BACKGROUND_COLOR }
456 : undefined,
457 title: "Files",
458 },
459 }),
460 ThreadFile: createNativeStackScreen({
461 screen: ThreadFileScreen,
462 linking: `${THREAD_LINKING_PREFIX}/files/:path*`,
463 options: SOLID_HEADER_OPTIONS,
464 }),
465 GitOverview: createNativeStackScreen({
466 screen: GitOverviewSheet,
467 linking: `${THREAD_LINKING_PREFIX}/git`,
468 options: {
469 presentation: "formSheet",
470 sheetAllowedDetents: [0.55, 0.92],
471 sheetGrabberVisible: true,
472 },
473 }),
474 GitCommit: createNativeStackScreen({
475 screen: GitCommitSheet,
476 linking: `${THREAD_LINKING_PREFIX}/git/commit`,
477 options: {
478 presentation: "formSheet",
479 sheetAllowedDetents: [0.55, 0.92],
480 sheetGrabberVisible: true,
481 },
482 }),
483 GitBranches: createNativeStackScreen({
484 screen: GitBranchesSheet,
485 linking: `${THREAD_LINKING_PREFIX}/git/branches`,
486 options: {
487 presentation: "formSheet",
488 sheetAllowedDetents: [0.55, 0.92],
489 sheetGrabberVisible: true,
490 },
491 }),
492 GitConfirm: createNativeStackScreen({
493 screen: GitConfirmSheet,
494 linking: `${THREAD_LINKING_PREFIX}/git-confirm`,
495 options: {
496 presentation: "formSheet",
497 sheetAllowedDetents: [0.45, 0.7],
498 sheetGrabberVisible: true,
499 },
500 }),
501 SettingsSheet: createNativeStackScreen({
502 screen: SettingsSheetStack,
503 linking: "settings",
504 options: {
505 gestureEnabled: true,
506 headerShown: false,
507 // Android pushes settings as a regular full page with an in-screen
508 // back header; iOS keeps the detented form sheet.
509 ...(Platform.OS === "android"
510 ? { presentation: "card" as const }
511 : {
512 presentation: "formSheet" as const,
513 sheetAllowedDetents: [0.7, 0.92],
514 sheetGrabberVisible: true,
515 }),
516 },
517 }),
518 SettingsLegal: createNativeStackScreen({
519 screen: SettingsLegalRouteScreen,
520 linking: "settings/legal",
521 options: {
522 ...LEGAL_DOCUMENT_HEADER_OPTIONS,
523 title: "Legal",
524 },
525 }),
526 ConnectOnboarding: createNativeStackScreen({
527 screen: ConnectOnboardingRouteScreen,
528 linking: "connect-onboarding",
529 options: {
530 // A root-level Android formSheet does not host the native stack bar;
531 // the route renders an embedded AndroidSheetHeader instead.
532 ...(Platform.OS === "android" ? { headerShown: false } : SHEET_SOLID_HEADER_OPTIONS),
533 title: "Set up T3 Connect",
534 gestureEnabled: true,
535 presentation: "formSheet",
536 sheetAllowedDetents: [0.6, 0.95],
537 sheetGrabberVisible: true,
538 },
539 }),
540 Connections: createNativeStackScreen({
541 screen: ConnectionsRouteScreen,
542 linking: "connections",
543 options: {
544 title: "Environments",
545 // Android: full page; the screen renders its own AndroidScreenHeader,
546 // so the native bar stays hidden. iOS keeps the sheet.
547 ...(Platform.OS === "android"
548 ? { presentation: "card" as const, headerShown: false }
549 : {
550 presentation: "formSheet" as const,
551 sheetAllowedDetents: [0.55, 0.7],
552 sheetGrabberVisible: true,
553 }),
554 },
555 }),
556 ConnectionsNew: createNativeStackScreen({
557 screen: ConnectionsNewRouteScreen,
558 linking: "connections/new",
559 options: {
560 presentation: "formSheet",
561 sheetAllowedDetents: [0.55, 0.7],
562 sheetGrabberVisible: true,
563 },
564 }),
565 NewTaskSheet: createNativeStackScreen({
566 screen: NewTaskSheetStack,
567 linking: "new",
568 // The whole new-task flow (choose project → draft → add project) shares
569 // draft state via NewTaskFlowProvider. The expo-router era mounted it in
570 // app/new/_layout.tsx; this layout wrapper is the native-stack equivalent.
571 layout: ({ children }) => <NewTaskFlowProvider>{children}</NewTaskFlowProvider>,
572 options: {
573 gestureEnabled: true,
574 headerShown: false,
575 // Android pushes the flow as a regular full page — the draft should
576 // read like a thread that just doesn't exist yet; iOS keeps the sheet.
577 ...(Platform.OS === "android"
578 ? { presentation: "card" as const }
579 : {
580 presentation: "formSheet" as const,
581 sheetAllowedDetents: [0.92],
582 sheetGrabberVisible: true,
583 }),
584 },
585 }),
586 NotFound: createNativeStackScreen({
587 screen: NotFoundScreen,
588 linking: "*",
589 }),
590 },
591});
592type RootStackType = typeof RootStack;
593​
594const navigationPathConfig = {
595 screens: createPathConfigForStaticNavigation(RootStack) ?? {},
596};
597​
598declare module "@react-navigation/native" {
599 interface RootNavigator extends RootStackType {}