import * as React from 'react' import { StyleSheet, Text, View } from 'react-native' import Touchable from 'src/components/Touchable' import Backspace from 'src/icons/Backspace' import { typeScale } from 'src/styles/fonts' interface Props { onDigitPress: (digit: number) => void onBackspacePress: () => void onDecimalPress?: () => void onBackspaceLongPress?: () => void decimalSeparator?: string testID?: string } function DigitButton({ digit, onDigitPress, }: { digit: number onDigitPress: (digit: number) => void }) { const onPress = () => onDigitPress(digit) return ( {digit} ) } export default function NumberKeypad(props: Props) { return ( {props.decimalSeparator && props.onDecimalPress ? ( {props.decimalSeparator} ) : ( )} ) } const styles = StyleSheet.create({ container: { width: '100%', alignItems: 'center', justifyContent: 'center', paddingHorizontal: 12, }, row: { width: '100%', flexDirection: 'row', justifyContent: 'space-around', alignItems: 'center', }, digit: { ...typeScale.labelMedium, width: 64, padding: 24, fontSize: 22, lineHeight: 28, justifyContent: 'center', textAlign: 'center', alignItems: 'center', }, })