mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-11 09:20:54 +08:00
12 lines
250 B
TypeScript
12 lines
250 B
TypeScript
import * as React from 'react';
|
|
import { Route } from './types';
|
|
|
|
/**
|
|
* Context which holds the route prop for a screen.
|
|
*/
|
|
const NavigationContext = React.createContext<Route<string> | undefined>(
|
|
undefined
|
|
);
|
|
|
|
export default NavigationContext;
|