2020-01-13 17:12:25 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import { Text } from 'react-native';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns native element to be rendered.
|
|
|
|
*
|
|
|
|
* @param {string} timerValue - String to display as time.
|
2021-03-18 13:05:08 +00:00
|
|
|
* @param {Object} textStyle - Style to be applied to the text.
|
2020-01-13 17:12:25 +00:00
|
|
|
*
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
2021-03-18 13:05:08 +00:00
|
|
|
export default function renderConferenceTimer(timerValue: string, textStyle: Object) {
|
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>
|
|
|
|
);
|
|
|
|
}
|