expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
13 lines (12 loc) • 480 B
TypeScript
import type { NavigationState } from '../routers';
import type { EventMapCore } from './types';
import type { NavigationEventEmitter } from './useEventEmitter';
type Options<State extends NavigationState> = {
state: State;
emitter: NavigationEventEmitter<EventMapCore<State>>;
};
/**
* Hook to take care of emitting `focus` and `blur` events.
*/
export declare function useFocusEvents<State extends NavigationState>({ state, emitter }: Options<State>): void;
export {};