use-react-native-navigation
Version:
A utility library for a easier use of react-native-navigation library.
16 lines • 952 B
TypeScript
import { Layout, Options } from 'react-native-navigation';
export declare const useNavigation: () => {
status: import("./navigation.store").NavigationStatus;
push: <P>(layout: Layout<P>) => Promise<any>;
pop: (mergeOptions?: Options | undefined) => Promise<any>;
dismissModal: (mergeOptions?: Options | undefined) => Promise<any>;
dismissOverlay: () => Promise<any>;
setRoot: (layout: import("react-native-navigation").LayoutRoot) => Promise<any>;
setStackRoot: <P_1>(toId: string, layout: Layout<P_1>) => Promise<any>;
popTo: (toId: string, mergeOptions?: Options | undefined) => Promise<any>;
popToRoot: (onId: string, mergeOptions?: Options | undefined) => Promise<any>;
showModal: <P_2>(layout: Layout<P_2>) => Promise<any>;
showOverlay: <P_3>(layout: Layout<P_3>) => Promise<any>;
dismissAllModals: (mergeOptions?: Options | undefined) => Promise<any>;
};
//# sourceMappingURL=useNavigation.d.ts.map