tcomb-form-native
tcomb-form-native copied to clipboard
SecureTextEntry asterisk behavior
Version
Secure text entry instantly replace characters with asterisk instead of showing clear text for a few seconds.
- tcomb-form-native v0.6.13
- react-native v0.55.4
Expected behaviour
Actual behaviour
Steps to reproduce
- react-native-init
- copy/paste https://github.com/gcanti/tcomb-form-native#example
- add
var options = {
fields: {
surname: {
secureTextEntry: true,
}
}
}; // optional rendering options (see documentation)
I think that's honestly something that's a part of default React Native behavior.
All the tcomb textbox component does is wrap a TextInput from React Native, see: https://github.com/gcanti/tcomb-form-native/blob/655a9b6da4a929f0cb4ef05a71a7a363a0d82c89/lib/templates/bootstrap/textbox.js#L66
I've tested vanilla ReactNative text inputs, and it works properly. I've tested tcomb-form native test project, and it fails. See repro.
When you say "I think that's honestly something that's a part of default React Native behavior." do you have some facts to back that up?
@btoueg tested on RN 0.57 and is working properly. Try with that version and recent tcomb-form-native
versions.