import React from 'react'; import { View, Text } from 'react-native'; import { Row } from 'react-native-easy-grid'; import PropTypes from 'prop-types'; import styles from './styles'; import { themes } from '../../../constants/colors'; const Subtitle = React.memo(({ text, theme }) => ( {text} )); Subtitle.propTypes = { text: PropTypes.string, theme: PropTypes.string }; export default Subtitle;