@embrace-io/react-native-navigation
Version:
A React Native wrapper for the OTel Navigation instrumentation library that creates telemetry data representing Navigation changes
17 lines (16 loc) • 828 B
TypeScript
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>>;
displayName: string;
};
export { EmbraceNavigationWrapper, EmbraceNavigationWrapperProps };