UNPKG

@embrace-io/react-native-navigation

Version:

A React Native wrapper for the OTel Navigation instrumentation library that creates telemetry data representing Navigation changes

7 lines (6 loc) 402 B
import { ForwardedRef } from "react"; import { TracerRef } from "../utils/hooks/useTracerRef"; import { INativeNavigationContainer, TrackerConfig } from "../types/navigation"; export type NativeNavRef = INativeNavigationContainer; declare const useNativeNavigationTracker: (ref: ForwardedRef<NativeNavRef>, tracer: TracerRef, config?: TrackerConfig) => void; export default useNativeNavigationTracker;