Closed akinncar closed 3 years ago
I just started to work on this issue, and the current proposal is:
<MaskedTextInput
type="currency"
options={{
prefix: "R$",
decimalSeparator: ',',
groupSeparator: '.',
precision: 2,
}}
onChangeText={(text, rawText) => {
setMaskedValue(text);
setUnmaskedValue(rawText);
}}
style={styles.input}
keyboardType="numeric"
/>
:tada: This issue has been resolved in version 0.2.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
We need to have a mask that can add mask currency values on
MaskedTextInput
andMaskedText
components, I taught in an example like that:If the component have
isCurrency === true
, should use currency mask logicExpected Behaivor (Nubank Mobile App):
<MaskedText />
component should have same behaivor.