import { View } from "react-native"; import { Text, TextInput } from "react-native-paper"; import type { Field, FieldControlProps } from "../../common/constants"; import { fieldStyles } from "../../styles/control-styles"; interface Props extends FieldControlProps { field: Field; } function NumberControl(props: Props) { return ( : } /> { props.error.hasError && ( {props.error.errorMsg} ) } ) } export default NumberControl;