Function MeetingProgressTimer

MeetingProgressTimer displays a timer badge indicating the progress time of a meeting, with customizable positioning and styles.

This component is designed to show a timer in one of four corner positions with optional styling and background color customization.

import React from 'react';
import { MeetingProgressTimer } from 'mediasfu-reactnative';

function App() {
return (
<MeetingProgressTimer
meetingProgressTime="15:30"
initialBackgroundColor="blue"
position="bottomRight"
showTimer={true}
textStyle={{ color: 'white', fontSize: 16 }}
/>
);
}

export default App;

Properties

propTypes?: WeakValidationMap<MeetingProgressTimerOptions>

Used to declare the types of the props accepted by the component. These types will be checked during rendering and in development only.

We recommend using TypeScript instead of checking prop types at runtime.

contextTypes?: ValidationMap<any>

Lets you specify which legacy context is consumed by this component.

defaultProps?: Partial<MeetingProgressTimerOptions>

Used to define default values for the props accepted by the component.

type Props = { name?: string }

const MyComponent: FC<Props> = (props) => {
return <div>{props.name}</div>
}

MyComponent.defaultProps = {
name: 'John Doe'
}
displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.


const MyComponent: FC = () => {
return <div>Hello!</div>
}

MyComponent.displayName = 'MyAwesomeComponent'