MediaSFU React Native
    Preparing search index...

    Variable ConfirmExitModalConst

    ConfirmExitModal: React.FC<ConfirmExitModalOptions> = ...

    ConfirmExitModal confirms whether a participant should leave or, for admins, end the event for all. It coordinates socket-based exits, respects ban flags, and surfaces override hooks for custom UI.

    • Differentiates between regular exit and admin-level "End Event" actions.
    • Calls exitEventOnConfirm with socket context for flexible business logic.
    • Supports corner anchoring, theming, and render overrides.
    • Provides clear call-to-action buttons with accessible labels.
    • Buttons expose descriptive accessibilityLabel values.
    • Focusable layout ensures keyboard navigation across controls.

    Modal configuration.

    Rendered confirmation modal.

    <ConfirmExitModal
    isConfirmExitModalVisible={visible}
    onConfirmExitClose={hide}
    member={participant}
    roomName={roomId}
    socket={socket}
    islevel="1"
    />
    <ConfirmExitModal
    {...props}
    islevel="2"
    backgroundColor="#1f2937"
    style={{ borderRadius: 16 }}
    renderContent={({ defaultContent }) => (
    <AnimatedView>{defaultContent}</AnimatedView>
    )}
    />