jiti-meet/react/features/conference/components/native/ConferenceTimerDisplay.js

23 lines
516 B
JavaScript
Raw Normal View History

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.
* @param {Object} textStyle - Style to be applied to the text.
2020-01-13 17:12:25 +00:00
*
* @returns {ReactElement}
*/
export default function renderConferenceTimer(timerValue: string, textStyle: Object) {
2020-01-13 17:12:25 +00:00
return (
<Text
numberOfLines = { 1 }
style = { textStyle }>
2020-01-13 17:12:25 +00:00
{ timerValue }
</Text>
);
}