Contentful Personalization & Analytics
    Preparing search index...

    Props for the OptimizationNavigationContainer component.

    interface OptimizationNavigationContainerProps {
        children: (
            props: {
                onReady: () => void;
                onStateChange: (state: NavigationState | undefined) => void;
                ref: RefObject<NavigationContainerRef | null>;
            },
        ) => ReactNode;
        includeParams?: boolean;
        onReady?: () => void;
        onStateChange?: (state: NavigationState | undefined) => void;
    }
    Index

    Properties

    children: (
        props: {
            onReady: () => void;
            onStateChange: (state: NavigationState | undefined) => void;
            ref: RefObject<NavigationContainerRef | null>;
        },
    ) => ReactNode

    Render prop that receives navigation props to spread onto the NavigationContainer.

    includeParams?: boolean

    Whether to include route params in the screen event properties.

    false
    
    onReady?: () => void

    Optional callback called when the navigation container is ready. Invoked after the initial screen is tracked.

    onStateChange?: (state: NavigationState | undefined) => void

    Optional callback called when the navigation state changes. Invoked after screen tracking is performed.