MediaSFU React Native
    Preparing search index...

    Interface MenuModalOptions

    Configuration options for the MenuModal component.

    MenuModalOptions

    Modal Control:

    interface MenuModalOptions {
        backgroundColor?: string;
        isVisible: boolean;
        onClose: () => void;
        customButtons?: CustomButton[];
        shareButtons?: boolean;
        position?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
        roomName: string;
        adminPasscode: string;
        islevel: string;
        eventType: EventType;
        localLink?: 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

    backgroundColor?: string

    Background fill applied to the modal card.

    isVisible: boolean

    Controls the modal visibility state.

    onClose: () => void

    Handler invoked to dismiss the modal.

    Appearance:

    customButtons?: CustomButton[]

    Optional array of bespoke menu actions.

    shareButtons?: boolean

    Toggles the share/action button group.

    Advanced Render Overrides:

    position?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight"

    Preferred anchor location.

    roomName: string

    Human-readable meeting identifier.

    adminPasscode: string

    Host/admin passcode displayed to privileged users.

    islevel: string

    Participant level used to gate passcode visibility (level '2' shows the passcode).

    eventType: EventType

    Event classification used by share helpers.

    localLink?: string

    URL for self-hosted Community Edition shares.

    Menu Content:

    style?: StyleProp<ViewStyle>

    Additional styles merged into the modal container.

    Meeting Metadata:

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

    Override to replace the default internal layout.

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

    Override to swap the surrounding modal container implementation.