feat(rn,conference) new UI for conference name duration

This commit is contained in:
Saúl Ibarra Corretgé
2021-03-18 14:05:08 +01:00
committed by Saúl Ibarra Corretgé
parent 33fc3833f9
commit 78d4af6bf2
5 changed files with 63 additions and 26 deletions

View File

@@ -3,20 +3,19 @@
import React from 'react';
import { Text } from 'react-native';
import styles from './styles';
/**
* Returns native element to be rendered.
*
* @param {string} timerValue - String to display as time.
* @param {Object} textStyle - Style to be applied to the text.
*
* @returns {ReactElement}
*/
export default function renderConferenceTimer(timerValue: string) {
export default function renderConferenceTimer(timerValue: string, textStyle: Object) {
return (
<Text
numberOfLines = { 4 }
style = { styles.roomTimer }>
numberOfLines = { 1 }
style = { textStyle }>
{ timerValue }
</Text>
);