akinncar/react-native-mask-text

Default value is not used correctly in MaskedTextInput

foyarash opened this issue · 2 comments

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

  • Expo v41

react-native-mask-text

Version: ^0.2.0

🎉 This issue has been resolved in version 0.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.