mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-27 21:08:02 +08:00
11 lines
281 B
TypeScript
11 lines
281 B
TypeScript
import type { Route } from '@react-navigation/routers';
|
|
import * as React from 'react';
|
|
|
|
/**
|
|
* Context which holds the route prop for a screen.
|
|
*/
|
|
const NavigationRouteContext =
|
|
React.createContext<Route<string> | undefined>(undefined);
|
|
|
|
export default NavigationRouteContext;
|