Created
April 29, 2023 14:51
-
-
Save dueka/c2b6b8756899ff79796ff23b1fedaed1 to your computer and use it in GitHub Desktop.
TranscribeOutput.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {Text, View, StyleSheet} from 'react-native'; | |
const TranscribedOutput = ({transcribedText, interimTranscribedText}: any) => { | |
if (transcribedText.length === 0 && interimTranscribedText.length === 0) { | |
return <Text>...</Text>; | |
} | |
return ( | |
<View style={styles.box}> | |
<Text style={styles.text}>{transcribedText}</Text> | |
<Text>{interimTranscribedText}</Text> | |
</View> | |
); | |
}; | |
const styles = StyleSheet.create({ | |
box: { | |
borderColor: 'black', | |
borderRadius: 10, | |
marginBottom: 0, | |
}, | |
text: { | |
fontWeight: '400', | |
fontSize: 30, | |
}, | |
}); | |
export default TranscribedOutput; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment