tcomb-form-native icon indicating copy to clipboard operation
tcomb-form-native copied to clipboard

SecureTextEntry asterisk behavior

Open btoueg opened this issue 6 years ago • 3 comments

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

untitled 1

Actual behaviour

untitled

Steps to reproduce

  1. react-native-init
  2. copy/paste https://github.com/gcanti/tcomb-form-native#example
  3. add
var options = {
  fields: {
    surname: {
      secureTextEntry: true,
    }
  }
}; // optional rendering options (see documentation)

btoueg avatar May 28 '18 14:05 btoueg

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

catherinetcai avatar Jun 02 '18 20:06 catherinetcai

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 avatar Jun 08 '18 12:06 btoueg

@btoueg tested on RN 0.57 and is working properly. Try with that version and recent tcomb-form-native versions.

Moreno97 avatar Oct 19 '18 10:10 Moreno97