1 | import type { NavigationAction, NavigationState, Router } from '@react-navigation/routers';
|
2 | type Options<Action extends NavigationAction> = {
|
3 | router: Router<NavigationState, Action>;
|
4 | getState: () => NavigationState;
|
5 | setState: (state: NavigationState) => void;
|
6 | key?: string;
|
7 | };
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export default function useOnRouteFocus<Action extends NavigationAction>({ router, getState, key: sourceRouteKey, setState, }: Options<Action>): (key: string) => void;
|
14 | export {};
|
15 |
|
\ | No newline at end of file |