Contentful Personalization & Analytics
    Preparing search index...

    Props for OptimizationNavigationContainer

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

    Properties

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

    Function to render the NavigationContainer. Receives props that should be 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. Called after the initial screen is tracked.

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

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