mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-11 22:33:32 +08:00
12 lines
313 B
TypeScript
12 lines
313 B
TypeScript
import * as React from 'react';
|
|
import { NavigationProp, ParamListBase } 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;
|