MediaSFU React Native
    Preparing search index...

    Variable CoHostModalConst

    CoHostModal: React.FC<CoHostModalOptions> = ...

    CoHostModal assigns and configures co-hosts for an event. It surfaces participant selection, responsibility toggles, and communicates updates through socket calls, while supporting custom theming and render overrides.

    • Presents participant picker excluding admins and current co-host.
    • Toggles responsibility and "dedicated" flags with live preview.
    • Persists changes via modifyCoHostSettings by default.
    • Supports render overrides for bespoke layouts and animated containers.
    • Switch components include visual and state feedback.
    • Close button and save action expose accessibility roles and labels implicitly.

    Modal configuration and callbacks.

    Rendered co-host management modal.

    <CoHostModal
    isCoHostModalVisible={visible}
    onCoHostClose={hide}
    participants={participants}
    coHostResponsibility={responsibilities}
    roomName={roomId}
    socket={socket}
    updateCoHost={setCoHost}
    updateCoHostResponsibility={setResponsibilities}
    updateIsCoHostModalVisible={setVisible}
    />
    <CoHostModal
    {...props}
    renderContent={({ defaultContent }) => (
    <ScrollView showsVerticalScrollIndicator={false}>
    {defaultContent}
    </ScrollView>
    )}
    renderContainer={({ defaultContainer }) => (
    <FadeIn>{defaultContainer}</FadeIn>
    )}
    />