import React from 'react'; import {Text, View, StyleSheet, ViewProps} from 'react-native'; interface CaptionScreenHeaderProps extends ViewProps { title: string; } const CaptionScreenHeader: React.FC = ({ title, style, }) => { return ( {title} ); }; const styles = StyleSheet.create({ container: { flexDirection: 'row', justifyContent: 'center', alignItems: 'center', height: '5%', }, headerContainer: { position: 'absolute', left: '50%', }, header: { position: 'relative', right: '50%', fontSize: 20, fontWeight: 'bold', color: 'white', }, }); export default CaptionScreenHeader;