UNPKG

expo-router

Version:

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

25 lines 681 B
import type { NavigationState } from '@react-navigation/core'; type HistoryRecord = { id: string; state: NavigationState; path: string; }; export declare function createMemoryHistory(): { readonly index: number; get(index: number): HistoryRecord; backIndex({ path }: { path: string; }): number; push({ path, state }: { path: string; state: NavigationState; }): void; replace({ path, state }: { path: string; state: NavigationState; }): void; go(n: number): Promise<void> | undefined; listen(listener: () => void): () => void; }; export {}; //# sourceMappingURL=createMemoryHistory.d.ts.map