expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
19 lines (18 loc) • 725 B
TypeScript
import * as React from 'react';
import type { ParamListBase, Route } from '../routers';
import type { NavigationProp } from './types';
/**
* Context which holds the route prop for a screen.
*/
export declare const NavigationRouteContext: React.Context<Route<string> | undefined>;
type Props = {
route: Route<string>;
navigation: NavigationProp<ParamListBase>;
children: React.ReactNode;
};
/**
* Component to provide the navigation and route contexts to its children.
*/
export declare const NamedRouteContextListContext: React.Context<Record<string, React.Context<Route<string>>> | undefined>;
export declare function NavigationProvider({ route, navigation, children }: Props): React.JSX.Element;
export {};