mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +08:00
13 lines
357 B
TypeScript
13 lines
357 B
TypeScript
import * as React from 'react';
|
|
import { ParamListBase } from '@react-navigation/routers';
|
|
import { NavigationProp } from './types';
|
|
|
|
/**
|
|
* Context which holds the navigation prop for a screen.
|
|
*/
|
|
const NavigationContext = React.createContext<
|
|
NavigationProp<ParamListBase, string, any, any> | undefined
|
|
>(undefined);
|
|
|
|
export default NavigationContext;
|