import * as React from 'react' import { StyleSheet, Text, TextStyle, ViewStyle } from 'react-native' import Touchable from 'src/components/Touchable' import colors from 'src/styles/colors' import { typeScale } from 'src/styles/fonts' interface ButtonProps { onPress: () => void text: string accessibilityLabel?: string disabled?: boolean style?: ViewStyle textStyle?: TextStyle testID?: string children?: React.ReactNode } const TOUCH_OVERFLOW = 7 export default class SmallButton extends React.Component { render() { const { onPress, text, accessibilityLabel, disabled, style, textStyle, children } = this.props return ( <> {children} {text} ) } } const PADDING_VERTICAL = 6 const PADDING_HORIZONTAL = 16 const styles = StyleSheet.create({ button: { flexDirection: 'row', alignSelf: 'flex-start', alignItems: 'center', paddingVertical: PADDING_VERTICAL, paddingHorizontal: PADDING_HORIZONTAL, borderRadius: 2, backgroundColor: 'transparent', }, text: { ...typeScale.labelMedium, fontSize: 13, lineHeight: 20, color: colors.contentSecondary, textAlign: 'center', }, textPadding: { paddingLeft: 10, paddingTop: 7, }, })