import * as React from 'react' import { StyleSheet, Text, View } from 'react-native' import { typeScale } from 'src/styles/fonts' interface Props { title: string subtitle?: string } class ReviewHeader extends React.PureComponent { render() { const { title, subtitle } = this.props return ( {title} {!!subtitle && subtitle.length > 0 && {subtitle}} ) } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', marginTop: 10, }, heading: { padding: 10, paddingBottom: 10, alignSelf: 'center', }, }) export default ReviewHeader