UNPKG

841 BTypeScriptView Raw
1import { ParamListBase } from '@react-navigation/routers';
2import * as React from 'react';
3import type { NavigationContainerProps, NavigationContainerRef } from './types';
4/**
5 * Container component which holds the navigation state.
6 * This should be rendered at the root wrapping the whole app.
7 *
8 * @param props.initialState Initial state object for the navigation tree.
9 * @param props.onStateChange Callback which is called with the latest navigation state when it changes.
10 * @param props.children Child elements to render the content.
11 * @param props.ref Ref object which refers to the navigation object containing helper methods.
12 */
13declare const BaseNavigationContainer: React.ForwardRefExoticComponent<NavigationContainerProps & React.RefAttributes<NavigationContainerRef<ParamListBase>>>;
14export default BaseNavigationContainer;