2020-01-13 17:12:25 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { Text } from 'react-native';
|
|
|
|
|
2023-02-03 11:31:00 +00:00
|
|
|
import { IDisplayProps } from '../ConferenceTimer';
|
|
|
|
|
2020-01-13 17:12:25 +00:00
|
|
|
/**
|
|
|
|
* Returns native element to be rendered.
|
|
|
|
*
|
2023-02-03 11:31:00 +00:00
|
|
|
* @param {Object} props - Component props.
|
2020-01-13 17:12:25 +00:00
|
|
|
*
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
2023-02-03 11:31:00 +00:00
|
|
|
export default function ConferenceTimerDisplay({ timerValue, textStyle }: IDisplayProps) {
|
2020-01-13 17:12:25 +00:00
|
|
|
return (
|
|
|
|
<Text
|
2021-03-18 13:05:08 +00:00
|
|
|
numberOfLines = { 1 }
|
|
|
|
style = { textStyle }>
|
2020-01-13 17:12:25 +00:00
|
|
|
{ timerValue }
|
|
|
|
</Text>
|
|
|
|
);
|
|
|
|
}
|