MediaSFU React Native
    Preparing search index...

    Interface ConfirmHereModalOptions

    Configuration options for the ConfirmHereModal component.

    ConfirmHereModalOptions

    Modal Control:

    interface ConfirmHereModalOptions {
        isConfirmHereModalVisible: boolean;
        onConfirmHereClose: () => void;
        backgroundColor?: string;
        countdownDuration?: number;
        socket: Socket;
        localSocket?: Socket;
        roomName: string;
        member: string;
        style?: StyleProp<ViewStyle>;
        renderContent?: (
            options: {
                defaultContent: Element;
                dimensions: { width: number; height: number };
            },
        ) => Element;
        renderContainer?: (
            options: {
                defaultContainer: Element;
                dimensions: { width: number; height: number };
            },
        ) => Element;
    }
    Index

    Properties

    isConfirmHereModalVisible: boolean

    Controls the visibility state.

    onConfirmHereClose: () => void

    Invoked when the user confirms or the modal times out.

    Countdown Behaviour:

    backgroundColor?: string

    Modal card background color.

    countdownDuration?: number

    Seconds before the user is automatically disconnected.

    socket: Socket

    Primary socket used to emit disconnectUser events.

    localSocket?: Socket

    Optional secondary socket mirror for local transports.

    roomName: string

    Active room identifier attached to disconnect events.

    member: string

    Member identifier associated with the confirmation prompt.

    Appearance:

    style?: StyleProp<ViewStyle>

    Additional container styling.

    Advanced Render Overrides:

    renderContent?: (
        options: {
            defaultContent: Element;
            dimensions: { width: number; height: number };
        },
    ) => Element

    Custom renderer for the modal body.

    renderContainer?: (
        options: {
            defaultContainer: Element;
            dimensions: { width: number; height: number };
        },
    ) => Element

    Custom renderer for the modal container implementation.