Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

secureTextEntry not working in Android #23

Closed
AnchalMulchandani opened this issue Apr 30, 2019 · 6 comments
Closed

secureTextEntry not working in Android #23

AnchalMulchandani opened this issue Apr 30, 2019 · 6 comments

Comments

@AnchalMulchandani
Copy link

I have added this component and working fine in iOS but in android "secureTextEntry" is not working.

Any idea how it will work?

@ice-chillios
Copy link

ice-chillios commented Apr 30, 2019

@AnchalMulchandani Hi, It's not really related to my package but to React-Native
facebook/react-native#20606. I will leave it as a reference to this issue.

@AnchalMulchandani
Copy link
Author

AnchalMulchandani commented Apr 30, 2019

@dsznajder I want to secure the code in android also but its not working with "secureTextEntry".

AnyIdea how to get inputs in dot formate(secured formate) instead of number formate?

here is my way, I'm using

<OtpInputs secureTextEntry={true} handleChange={code => this.confirmEnteredPin(code)} numberOfInputs={6} />

@AnchalMulchandani
Copy link
Author

@dsznajder I got the solution Thanks!

Its all about, "secureTextEntry" will not work with keyboardType={"email-address"} or keyboardType={"phone-pad"} and in package its by-default {"phone-pad"}, so it was not working..

I passed keyboardType={"numeric"} and it works :)

Thanks

@abhishekgargx
Copy link

@dsznajder I got the solution Thanks!

Its all about, "secureTextEntry" will not work with keyboardType={"email-address"} or keyboardType={"phone-pad"} and in package its by-default {"phone-pad"}, so it was not working..

I passed keyboardType={"numeric"} and it works :)

Thanks

where did you add prop KeyboardType={"numeric"} , please a code snippet if possible

@AnchalMulchandani
Copy link
Author

@dsznajder I got the solution Thanks!
Its all about, "secureTextEntry" will not work with keyboardType={"email-address"} or keyboardType={"phone-pad"} and in package its by-default {"phone-pad"}, so it was not working..
I passed keyboardType={"numeric"} and it works :)
Thanks

where did you add prop KeyboardType={"numeric"} , please a code snippet if possible

Here is the way i have used-

<OtpInputs
                                isReset={isReset}
                                clearTextOnFocus={true}
                                handleChange={code => this.changeValue('OTP', code)}
                                numberOfInputs={4}
                                keyboardType={"numeric"} secureTextEntry ={true}
                                
                            />

i just overwrite its keyboardtype property, as bydefault it's value is 'phone-pad'.

@Akshayshakya
Copy link

@dsznajder I got the solution Thanks!

Its all about, "secureTextEntry" will not work with keyboardType={"email-address"} or keyboardType={"phone-pad"} and in package its by-default {"phone-pad"}, so it was not working..

I passed keyboardType={"numeric"} and it works :)

Thanks

Thank you so much its perfect answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants