halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.98k stars 291 forks source link

SecureTextEntry doesn't work on Android #52

Closed 2hyjun closed 6 years ago

2hyjun commented 7 years ago

I set secureTextEntry as {true} on property

<Fumi style={{flex: 1}}
                              label={'비밀번호'}
                              iconClass={FontAwesomeIcon}
                              iconName={'lock'}
                              iconColor={'#f95a25'}
                              onChangeText={(password) => this.setState({password})}
                              keyboardType="email-address"
                              autoCapltialize={"none"}
                              autoComplete="none"
                              secureTextEntry={true}
                        />

It works on IOS but not on Android How can I fix it?

mbarbier003 commented 7 years ago

It works for me on Android 5.1 and 6 using Kohana :
<Kohana style={{width: 300, height:50, backgroundColor:"rgba(255,255,255,0)"}} label={'Password'} iconClass={FontAwesomeIcon} iconName={"key"} iconColor={'rgb(228, 4, 32)'} iconSize={20} secureTextEntry={true} onChangeText={(password) => this.setPassword(password)} autoCapitalize={'none'} autoCorrect={false} returnKeyType='go' labelStyle={{color:"#5a5959"}} /> You can try it and if it works, then it's a problem with the Fumi implementation

2hyjun commented 7 years ago

This problem didn't occur on other components like Kohana. Maybe there's a problem with the Fumi. You're right.

halilb commented 7 years ago

I just tried secureTextEntry on Android 4.4 and it worked fine for Fumi. I used the example project that's in the repository.

Could you deploy the example app to your device and try it out @2hyjun?

priyankpat commented 7 years ago

I am using Fumi and having no issue with secureTextEntry={true} on Android.

halilb commented 6 years ago

Closing for inactivity.