Closed kaitlynbrown closed 5 years ago
@kaitlynbrown Most probably it is a React-native issue with 'secureTextEntry' property of 'TextInput' component...So, as native-base is built on top of "react-native", same issue with 'Input' component... Check out the link https://github.com/facebook/react-native/issues/10678
Yes, indeed even 'TextInput' of React-Native behaves the same way with secureTextEntry:
Closing the issue due to no response for a while...Hope your issue has been resolved.You can reopen the issue if you still feel the issue is exclusive to "native-base"...
I have gone through these following points
Issue Description
When changing an
Input
field from masked to unmasked or unmasked to masked, the cursor also jumps back to the beginning of the fieldnode, npm, react-native, react and native-base version, expo version if used, xcode version
node v9.11.2 npm v5.6.0 yarn v1.9.4 react-native v0.57.0-rc.4 react v16.4.1 native-base v2.8.1 Pixel 2, Android 8.1.0
Expected behaviour
When the
secureTextEntry
prop of theInput
component is changed fromtrue
tofalse
(orfalse
totrue
), the cursor should remain where it is in the input fieldActual behaviour
When the
secureTextEntry
prop of theInput
component is changed fromtrue
tofalse
(orfalse
totrue
), the cursor moves to the beginning of the fieldSteps to reproduce
Given the following component:
with isPassword set to true, the input should be masked and there should be an eye icon. Tapping the eye icon will cause the input to be unmasked, and change the icon to have a slash through it. It also, unfortunately, returns the cursor to the beginning of the field
Is the bug present in both iOS and Android or in any one of them?
At least Android. Have not tested on iOS