UNPKG

486 BTypeScriptView Raw
1import type { ParamListBase } from '@react-navigation/routers';
2import type { NavigationProp } from './types';
3declare type Options = {
4 key?: string;
5 navigation?: NavigationProp<ParamListBase>;
6 options?: object | undefined;
7};
8export default function useOptionsGetters({ key, options, navigation, }: Options): {
9 addOptionsGetter: (key: string, getter: () => object | undefined | null) => () => void;
10 getCurrentOptions: () => object | null | undefined;
11};
12export {};