UNPKG

540 BTypeScriptView Raw
1import type { NavigationState } from '@react-navigation/routers';
2import type { EventMapCore } from './types';
3import type { NavigationEventEmitter } from './useEventEmitter';
4type Options<State extends NavigationState> = {
5 state: State;
6 emitter: NavigationEventEmitter<EventMapCore<State>>;
7};
8/**
9 * Hook to take care of emitting `focus` and `blur` events.
10 */
11export default function useFocusEvents<State extends NavigationState>({ state, emitter, }: Options<State>): void;
12export {};
13//# sourceMappingURL=useFocusEvents.d.ts.map
\No newline at end of file