import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import { RectButton } from 'react-native-gesture-handler'; import { COLOR_TEXT } from '../constants/colors'; import sharedStyles from '../views/Styles'; const styles = StyleSheet.create({ container: { flex: 1, flexDirection: 'row', alignItems: 'center', justifyContent: 'center', height: 56, paddingHorizontal: 15 }, disabled: { opacity: 0.3 }, textContainer: { flex: 1, justifyContent: 'center' }, title: { fontSize: 16, ...sharedStyles.textColorNormal, ...sharedStyles.textRegular }, subtitle: { fontSize: 14, ...sharedStyles.textColorNormal, ...sharedStyles.textRegular } }); const Content = React.memo(({ title, subtitle, disabled, testID, right }) => ( {title} {subtitle ? {subtitle} : null } {right ? right() : null} )); const Button = React.memo(({ onPress, ...props }) => ( )); const Item = React.memo(({ ...props }) => { if (props.onPress) { return