UNPKG

385 BTypeScriptView Raw
1import type { ParamListBase } from '@react-navigation/routers';
2import * as React from 'react';
3
4import type { NavigationContainerRef } from './types';
5
6/**
7 * Context which holds the route prop for a screen.
8 */
9const NavigationContainerRefContext = React.createContext<
10 NavigationContainerRef<ParamListBase> | undefined
11>(undefined);
12
13export default NavigationContainerRefContext;