Files
react-navigation/packages/core/src/NavigationRouteContext.tsx
2019-09-04 11:54:20 +02:00

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;