@react-navigation/native
Version:
React Native integration for React Navigation
26 lines (25 loc) • 1.07 kB
TypeScript
import { NavigationContainerProps, NavigationContainerRef } from '@react-navigation/core';
import * as React from 'react';
import type { DocumentTitleOptions, LinkingOptions, Theme } from './types';
declare global {
var REACT_NAVIGATION_DEVTOOLS: WeakMap<NavigationContainerRef<any>, {
readonly linking: LinkingOptions<any>;
}>;
}
declare type Props<ParamList extends {}> = NavigationContainerProps & {
theme?: Theme;
linking?: LinkingOptions<ParamList>;
fallback?: React.ReactNode;
documentTitle?: DocumentTitleOptions;
onReady?: () => void;
};
declare const NavigationContainer: <RootParamList extends {} = ReactNavigation.RootParamList>(props: NavigationContainerProps & {
theme?: Theme | undefined;
linking?: LinkingOptions<RootParamList> | undefined;
fallback?: React.ReactNode;
documentTitle?: DocumentTitleOptions | undefined;
onReady?: (() => void) | undefined;
} & {
ref?: React.Ref<NavigationContainerRef<RootParamList>> | undefined;
}) => React.ReactElement;
export default NavigationContainer;