MediaSFU React Native
    Preparing search index...

    Interface RequestsModalOptions

    Configuration options for the RequestsModal component.

    RequestsModalOptions

    Modal Control:

    interface RequestsModalOptions {
        isRequestsModalVisible: boolean;
        onRequestClose: () => void;
        requestCounter: number;
        onRequestFilterChange: (text: string) => void;
        onRequestItemPress?: RespondToRequestsType;
        requestList: Request[];
        updateRequestList: (newRequestList: Request[]) => void;
        roomName: string;
        socket: Socket;
        renderRequestComponent?: FC<RenderRequestComponentOptions>;
        backgroundColor?: string;
        position?: "center" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
        parameters: RequestsModalParameters;
        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

    isRequestsModalVisible: boolean

    Toggles modal visibility.

    onRequestClose: () => void

    Invoked when the modal should close.

    Request Management:

    requestCounter: number

    Total pending requests displayed in the badge.

    onRequestFilterChange: (text: string) => void

    Tracks filter input changes.

    onRequestItemPress?: RespondToRequestsType

    Optional handler for accept/deny actions (defaults to respondToRequests).

    Session Context:

    requestList: Request[]

    Complete list of requests to render.

    updateRequestList: (newRequestList: Request[]) => void

    Updates persistent request state after actions.

    roomName: string

    Identifier for the active room used when responding.

    socket: Socket

    Active socket.io connection enabling real-time updates.

    State Parameters:

    renderRequestComponent?: FC<RenderRequestComponentOptions>

    Custom renderer for individual request items.

    Advanced Render Overrides:

    backgroundColor?: string

    Background color applied to the modal card.

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

    Placement of the modal container.

    Encapsulated helpers that deliver filtered lists to the modal.

    Customization:

    style?: StyleProp<ViewStyle>

    Additional styling injected into the modal container.

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

    Override for the default body layout.

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

    Override for the modal container wrapper.