UNPKG

809 BTypeScriptView Raw
1import type { ParamListBase } from '@react-navigation/routers';
2import * as React from 'react';
3import type { NavigationProp } from './types';
4/**
5 * Context which holds the navigation prop for a screen.
6 */
7declare const NavigationContext: React.Context<NavigationProp<ParamListBase, string, undefined, Readonly<{
8 key: string;
9 index: number;
10 routeNames: string[];
11 history?: unknown[] | undefined;
12 routes: (Readonly<{
13 key: string;
14 name: string;
15 path?: string | undefined;
16 }> & Readonly<{
17 params?: Readonly<object | undefined>;
18 }> & {
19 state?: Readonly<any> | import("@react-navigation/routers").PartialState<Readonly<any>> | undefined;
20 })[];
21 type: string;
22 stale: false;
23}>, {}, {}> | undefined>;
24export default NavigationContext;