UNPKG

expo-router

Version:

Expo Router is a file-based router for React Native and web applications.

13 lines (12 loc) • 555 B
import type { NavigationState, ParamListBase } from '../routers'; import type { Descriptor, NavigationProp, RouteProp } from './types'; type Options = { state: NavigationState; descriptors: Record<string, Descriptor<object, NavigationProp<ParamListBase>, RouteProp<ParamListBase>>>; }; /** * Write the current options, so that server renderer can get current values * Mutating values like this is not safe in async mode, but it doesn't apply to SSR */ export declare function useCurrentRender({ state, descriptors }: Options): void; export {};