import { Text } from '@ui-kitten/components' import React from 'react' import { StyleSheet, View } from 'react-native' import { Layout } from '../styles' import { fontSize } from '../styles/typography' interface NavigationTitleProps { title?: string subtitle?: string } /** * Navigation Title with a smaller subtitle. */ export const NavigationTitle = ({ title, subtitle }: NavigationTitleProps) => { return ( {title && ( {title} )} {subtitle && {subtitle}} ) } const styles = StyleSheet.create({ container: { ...Layout.center, }, title: { ...fontSize.sm, fontWeight: '500', }, subtitle: { ...fontSize.xxs }, })