UNPKG

457 BTypeScriptView Raw
1import type { ListenerMap } from './NavigationBuilderContext';
2/**
3 * Hook which lets child navigators add action listeners.
4 */
5export default function useChildListeners(): {
6 listeners: {
7 action: import("./NavigationBuilderContext").ChildActionListener[];
8 focus: import("./NavigationBuilderContext").FocusedNavigationListener[];
9 };
10 addListener: <T extends keyof ListenerMap>(type: T, listener: ListenerMap[T]) => () => void;
11};