bhrott / react-native-masked-text

A pure javascript masked text and input text component for React-Native.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prefix disappear after clear field

lcglucas opened this issue · comments

I'm using "react-native-masked-text": "^1.13.0" and if I clear all the input data, it remains blank. This is my config:

<TextInputMask
  type={'money'}
  options={{
    precision: 2,
    separator: ',',
    delimiter: '.',
    unit: 'R$ ',
    suffixUnit: ''
  }}
  value={value}
  onChangeText={onChange}
  customTextInput={InputStyle}
/>

ezgif com-crop