import React, { ReactChildren } from 'react'; import { View, Text, TextStyle } from 'react-native'; interface InstitutionTitleProps { title?: string; children?: ReactChildren; } const InstitutionsTitle = (props: InstitutionTitleProps) => { const { title, children } = props; const textStyles: TextStyle = { fontSize: 18, alignSelf: 'center', fontStyle: 'italic', fontWeight: 'bold', }; return ( {title || children || 'Choose an Institution to connect with'} ); }; export default InstitutionsTitle;