bhrott / react-native-masked-text

A pure javascript masked text and input text component for React-Native.
MIT License
1.61k stars 249 forks source link

Prefix disappear after clear field #281

Open lcglucas opened 1 year ago

lcglucas commented 1 year ago

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