akinncar / react-native-mask-text

🎭 A React Native and Expo library to mask text and inputs
MIT License
417 stars 40 forks source link

Default value is not used correctly in MaskedTextInput #23

Closed foyarash closed 3 years ago

foyarash commented 3 years ago

Steps to reproduce

  1. Create a MaskedTextInput
  2. Pass it a default value

Expected behaviour

The default value should be displayed in the input.

Actual behaviour

The input is empty as the onChangeText prop is triggered with empty values

See this snack

Environment

react-native-mask-text

Version: ^0.2.0

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 0.2.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

akinncar commented 3 years ago

Hey, @foyarash Thanks for opening an issue about this bug. It should be fixed on v0.2.2. Try to upgrade and feel free to re-open this issue if you have any problems about defaultValue usage.