UNPKG

447 BTypeScriptView Raw
1import type { ParamListBase } from '@react-navigation/routers';
2import * as React from 'react';
3
4import type { NavigationHelpers } from './types';
5
6/**
7 * Context which holds the navigation helpers of the parent navigator.
8 * Navigators should use this context in their view component.
9 */
10const NavigationHelpersContext = React.createContext<
11 NavigationHelpers<ParamListBase> | undefined
12>(undefined);
13
14export default NavigationHelpersContext;