UNPKG

@embrace-io/react-native-navigation

Version:

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

14 lines (13 loc) 796 B
import * as React from "react"; import { ReactNode, type PropsWithoutRef, type ForwardRefExoticComponent, type RefAttributes } from "react"; import { TracerProvider, TracerOptions, Attributes } from "@opentelemetry/api"; import { TrackerProps } from "./instrumentation/types/navigation"; interface EmbraceNavigationWrapperProps { children: ReactNode; tracerProvider?: TracerProvider; tracerOptions?: TracerOptions; screenAttributes?: Attributes; debug?: boolean; } declare const EmbraceNavigationWrapper: <TRef>(NavigationComponent: ForwardRefExoticComponent<PropsWithoutRef<TrackerProps> & RefAttributes<TRef>>) => React.ForwardRefExoticComponent<EmbraceNavigationWrapperProps & React.RefAttributes<TRef>>; export { EmbraceNavigationWrapper, EmbraceNavigationWrapperProps };