NumberInput
Number Input to create an input with a formatted number
(code example)
note
This requires RN67 to work on Android.
#
Usage<NumberInput initialValue={1506} onChange={onChange} placeholder={'Price'}/>
#
API#
containerStyleContainer style of the whole component
ViewStyle
#
contextMenuHidden#
Requires @react-native-community/clipboard to be installed.If true, context menu is hidden.
boolean
#
fractionDigitsNumber of digits after the decimal point. Must be in the range 0 - 20, inclusive.
number
#
initialNumberA valid number (in en locale, i.e. only digits and a decimal point).
number
#
leadingTextA leading text
string
#
leadingTextStyleThe style of the leading text
TextStyle
#
onChangeNumberCallback that is called when the number value has changed.
(data: NumberInputData) => void
#
textFieldPropsMost of TextField's props can be applied, except for ones that are passed directly via named props.
TextFieldProps
#
trailingTextA trailing text
string
#
trailingTextStyleThe style of the trailing text
TextStyle