/** * Hook that auto-tracks screen views from React Navigation. * * Attach the returned `onStateChange` and `ref` to your NavigationContainer: * * ```tsx * const { ref, onStateChange } = useReactNavigationTracking(); * * * ... * * ``` */ export declare function useReactNavigationTracking(options?: { /** Custom function to extract screen name from navigation state */ getActiveRouteName?: (state: any) => string | undefined; /** Extra properties to attach to every screen event */ extraProperties?: Record; }): { ref: import("react").MutableRefObject; onStateChange: (state: any) => void; }; /** * Recursively finds the active route name from a navigation state object. */ declare function defaultGetActiveRouteName(state: any): string | undefined; /** * Standalone helper: get active screen name from navigation state. * Useful if you need to read the screen name outside of a hook. */ export { defaultGetActiveRouteName as getActiveRouteName }; //# sourceMappingURL=react-navigation.d.ts.map