Contentful Personalization & Analytics
    Preparing search index...

    Props for the PreviewPanel component.

    interface PreviewPanelProps {
        contentfulClient: ContentfulClient;
        onRefresh?: () => void;
        onVisibilityChange?: (isVisible: boolean) => void;
        showHeader?: boolean;
        style?: StyleProp<ViewStyle>;
    }
    Index

    Properties

    contentfulClient: ContentfulClient

    Contentful client instance used to fetch audience and experience entries. The panel will automatically fetch nt_audience and nt_experience content types (Contentful content type IDs created by the Optimization platform).

    onRefresh?: () => void

    Called when the in-panel "Refresh" button is pressed. Supplying this prop surfaces the button (with testID preview-refresh-button); omitting it hides the button entirely. Typically wired to sdk.page(...) so the experience API is re-fetched and the override interceptor runs over the fresh response.

    onVisibilityChange?: (isVisible: boolean) => void

    Called when the panel visibility changes

    showHeader?: boolean

    Whether to show the header with title

    style?: StyleProp<ViewStyle>

    Custom container style