@react-navigation/core
Version:
Core utilities for building navigators
13 lines • 540 B
TypeScript
import type { NavigationState } from '@react-navigation/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 default function useFocusEvents<State extends NavigationState>({ state, emitter, }: Options<State>): void;
export {};
//# sourceMappingURL=useFocusEvents.d.ts.map