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

integer and decimal mask #271

Open brunochimenes opened 2 years ago

brunochimenes commented 2 years ago

I need to add a mask that is decimal and integer, but this option needs to be dynamic as the user types. For example, the user can put in an integer and then add the comma, making the number decimal.

I'm using the money type with these settings.

type="money"
options={{
precision: 3,
separator: ',',
delimiter: '.',
unit: '',
suffixUnit: '',
}}