MediaSFU React Native (Expo)
    Preparing search index...

    Variable MeetingProgressTimerConst

    MeetingProgressTimer: React.FC<MeetingProgressTimerOptions> = ...

    MeetingProgressTimer - Elapsed meeting time display badge

    MeetingProgressTimer is a React Native component that displays the elapsed time of a meeting in a colored badge positioned at one of four screen corners. The timer updates automatically as the meeting progresses and is commonly overlaid on video grids.

    Key Features:

    • Real-time elapsed meeting time display
    • Four corner positioning options
    • Customizable badge background color
    • Customizable text styling
    • Show/hide toggle
    • Compact badge design
    • Absolute positioning for overlay

    UI Customization: This component's styling can be customized via the provided props. For complete replacement, the parent grid component can be overridden via uiOverrides.

    Configuration options

    Rendered meeting progress timer badge

    // Basic usage with default green badge
    import React, { useState, useEffect } from 'react';
    import { MeetingProgressTimer } from 'mediasfu-reactnative-expo';

    const [elapsedTime, setElapsedTime] = useState('00:00');

    useEffect(() => {
    const interval = setInterval(() => {
    // Update elapsed time logic
    setElapsedTime(calculateElapsed());
    }, 1000);
    return () => clearInterval(interval);
    }, []);

    return (
    <MeetingProgressTimer
    meetingProgressTime={elapsedTime}
    position="topLeft"
    />
    );
    // With custom styling and positioning
    return (
    <MeetingProgressTimer
    meetingProgressTime="15:30"
    initialBackgroundColor="#e74c3c"
    position="bottomRight"
    textStyle={{ color: 'white', fontSize: 16, fontWeight: 'bold' }}
    showTimer={true}
    />
    );
    // Conditional display based on meeting state
    const [showTimer, setShowTimer] = useState(false);

    return (
    <MeetingProgressTimer
    meetingProgressTime={meetingTime}
    position="topRight"
    showTimer={meetingStarted && showTimer}
    initialBackgroundColor="#27ae60"
    />
    );