UNPKG

react-navigation-helpers

Version:

Easy to use React Navigation with these helpers for React Navigation on React Native

24 lines (23 loc) 1.26 kB
interface RefObject<T> { current: T | null; } export type NavigationEvent = "transitionStart" | "transitionEnd" | "gestureStart" | "gestureEnd" | "gestureCancel" | string; export declare const addNavigationListener: (event: NavigationEvent, callback: any) => (() => void); export declare const isReadyRef: RefObject<boolean>; export declare const navigationRef: import("@react-navigation/native").NavigationContainerRefWithCurrent<ReactNavigation.RootParamList>; export declare const navigationListenerProps: { onTransitionEnd: (props: any, ...args: any[]) => void; onTransitionStart: (props: any, ...args: any[]) => void; onGestureStart: (props: any, ...args: any[]) => void; onGestureEnd: (props: any, ...args: any[]) => void; onGestureCancel: (props: any, ...args: any[]) => void; }; export declare const navigate: (routeName: string, params?: any) => void; export declare const push: (routeName: string, params?: any) => void; export declare const goBack: () => void; export declare const pop: (...args: any) => void; export declare const popToTop: () => void; export declare const reset: (params: any) => void; export declare const replace: (params: any) => void; export declare const jumpTo: (params: any) => void; export {};