mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-01 09:24:43 +08:00
15 lines
391 B
TypeScript
15 lines
391 B
TypeScript
import type { ParamListBase } from '@react-navigation/routers';
|
|
import * as React from 'react';
|
|
|
|
import type { NavigationContainerRef } from './types';
|
|
|
|
/**
|
|
* Context which holds the route prop for a screen.
|
|
*/
|
|
const NavigationContainerRefContext =
|
|
React.createContext<NavigationContainerRef<ParamListBase> | undefined>(
|
|
undefined
|
|
);
|
|
|
|
export default NavigationContainerRefContext;
|