expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
11 lines (10 loc) • 466 B
TypeScript
import type { NavigationState, RouterBrowserHistoryAction } from './types';
type StateWithHistory = Omit<NavigationState, 'history'> & {
history?: readonly {
type: string;
key?: string;
}[];
};
/** Maps entries added or removed by a tab or drawer router to browser navigation. */
export declare function getBrowserHistoryForHistoryChange(previous: StateWithHistory, next: StateWithHistory): RouterBrowserHistoryAction | undefined;
export {};