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) 366 B
import { ForwardedRef } from "react"; import { TracerRef } from "../utils/hooks/useTracerRef"; import { INavigationContainer, TrackerConfig } from "../types/navigation"; export type NavRef = INavigationContainer; declare const useNavigationTracker: (ref: ForwardedRef<NavRef>, tracer: TracerRef, config?: TrackerConfig) => void; export default useNavigationTracker;