UNPKG

932 BTypeScriptView Raw
1import type { InitialState } from '@react-navigation/routers';
2export default function findFocusedRoute(state: InitialState): (Omit<import("@react-navigation/routers").Route<string, object | undefined>, "key"> & {
3 state?: Readonly<Partial<Omit<Readonly<{
4 key: string;
5 index: number;
6 routeNames: string[];
7 history?: unknown[] | undefined;
8 routes: (Readonly<{
9 key: string;
10 name: string;
11 path?: string | undefined;
12 }> & Readonly<{
13 params?: Readonly<object | undefined>;
14 }> & {
15 state?: Readonly<any> | import("@react-navigation/routers").PartialState<Readonly<any>> | undefined;
16 })[];
17 type: string;
18 stale: false;
19 }>, "stale" | "routes">> & {
20 routes: (Omit<import("@react-navigation/routers").Route<string, object | undefined>, "key"> & any)[];
21 }> | undefined;
22}) | undefined;