[英]react-native textinput secure entry font size flicks
I have one strange issue with react-native TextInput when 我有一个奇怪的问题,反应原生TextInput时
secureTextEntry = {true}
secureTextEntry = {true}
The font size for the entire field changes to a couple sizes larger when: Typing backspace Or Waiting for a few seconds (~ 3 seconds); 在以下情况下,整个字段的字体大小会更改为几个大小:键入退格或等待几秒钟(~3秒); changing focus (tapping "return" or selecting the username field).
更改焦点(点击“返回”或选择用户名字段)。 This problem also seems to happen spontaneously when typing, where it will flicker the larger font size.
这个问题似乎也在键入时自发发生,它会闪烁更大的字体大小。
When I just remove that SecureTextEntry all works normally. 当我删除SecureTextEntry时,一切正常。
I am attaching an images here when typing the password.
我在输入密码时附上图像。
I am attaching an images here when typing backspace.
键入退格键时,我在这里附加图像。
I got it resolved, I have set Value property in TextInput component. 我解决了,我在TextInput组件中设置了Value属性。 So I just removed below line attributes and that solved the problem.
所以我只删除了以下行属性,这解决了问题。
value = {this.state.text}
value = {this.state.text}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.