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