UNPKG

1.07 kBTypeScriptView Raw
1import { NavigationContainerProps, NavigationContainerRef } from '@react-navigation/core';
2import * as React from 'react';
3import type { DocumentTitleOptions, LinkingOptions, Theme } from './types';
4declare global {
5 var REACT_NAVIGATION_DEVTOOLS: WeakMap<NavigationContainerRef<any>, {
6 readonly linking: LinkingOptions<any>;
7 }>;
8}
9declare type Props<ParamList extends {}> = NavigationContainerProps & {
10 theme?: Theme;
11 linking?: LinkingOptions<ParamList>;
12 fallback?: React.ReactNode;
13 documentTitle?: DocumentTitleOptions;
14 onReady?: () => void;
15};
16declare const NavigationContainer: <RootParamList extends {} = ReactNavigation.RootParamList>(props: NavigationContainerProps & {
17 theme?: Theme | undefined;
18 linking?: LinkingOptions<RootParamList> | undefined;
19 fallback?: React.ReactNode;
20 documentTitle?: DocumentTitleOptions | undefined;
21 onReady?: (() => void) | undefined;
22} & {
23 ref?: React.Ref<NavigationContainerRef<RootParamList>> | undefined;
24}) => React.ReactElement;
25export default NavigationContainer;