UNPKG

react-native-network-logger

Version:

An HTTP traffic monitor for React Native with zero dependencies

22 lines 826 B
export declare const setBackHandler: (backHandler?: () => void) => void; export declare const backHandlerSet: () => boolean; /** * Get a replacement back handler to use instead of your default navigation so you * can use your existing back button to navigate inside the network logger. * * If navigation has occurred in the logger app then pressing your back handler will * navigate internally. If it is already on the default page then it will call your * original back handler. * * e.g. * * const navigation = useNavigation() * * const onBack = getBackHandler(navigation.goBack) * * <Button onPress={onBack} title="Go back" /> * * @param backHandler App navigation default back handler */ export declare const getBackHandler: (backHandler: () => any) => () => void; //# sourceMappingURL=backHandler.d.ts.map