MediaSFU React Native
    Preparing search index...

    Variable MainGridComponentConst

    MainGridComponent: React.FC<MainGridComponentOptions> = ...

    MainGridComponent renders the primary on-stage grid and optionally overlays the meeting progress timer. Consumers can swap the inner or outer layout through render overrides.

    • Houses the main video/audio grid for active participants
    • Optionally displays meeting progress timer overlay
    • Supports custom timer background color
    • Toggle visibility with showAspect
    • Exposes render overrides for content and container
    • Fixed dimensions provided via width and height props
    • Timer positioned absolutely in top-right corner
    • Children fill the container with flex layout
    • Timer includes accessible time display
    • Grid container provides structural grouping
    // Basic main grid with timer
    <MainGridComponent
    backgroundColor="#000"
    height={600}
    width={800}
    meetingProgressTime="00:15:30"
    showTimer
    >
    <FlexibleGrid
    rows={2}
    columns={2}
    customWidth={400}
    customHeight={300}
    componentsToRender={videoTiles}
    />
    </MainGridComponent>
    // Hidden timer with custom background
    <MainGridComponent
    backgroundColor="#1a1a1a"
    height={720}
    width={1280}
    meetingProgressTime="01:23:45"
    showTimer={false}
    timeBackgroundColor="rgba(0,0,0,0.7)"
    style={{ borderRadius: 8 }}
    >
    <PresenterView participant={presenter} />
    </MainGridComponent>
    // With custom content layout
    <MainGridComponent
    backgroundColor="transparent"
    height={500}
    width={900}
    meetingProgressTime="00:45:12"
    renderContent={({ defaultContent, dimensions }) => (
    <View style={{ position: 'relative' }}>
    {defaultContent}
    <WatermarkOverlay width={dimensions.width} height={dimensions.height} />
    </View>
    )}
    >
    <ParticipantGrid />
    </MainGridComponent>