r5n-labs / react-native-otp-inputs

OTP inputs for React-Native
MIT License
249 stars 91 forks source link

Button colour changing after filling the inputs #254

Closed vinaynarayankutty closed 3 years ago

vinaynarayankutty commented 3 years ago

After filling in the otp code, the colour of the button after otpInputs component changes. I have no idea why it is showing this weird behaviour.

Please find the attached screenshot for detailed view. Here you can see a greyish background colour around the continue button. I've added any backgroundcolor to touchable opacity but it is still showing.

Screenshot 2021-02-24 at 3 13 06 PM
ice-chillios commented 3 years ago

@vinaynarayankutty It's not a package-related issue. Also, I'm not seeing any backgroundColor here, more like borderColor.

vinaynarayankutty commented 3 years ago

@dsznajder Hi, see the problem is I've given the whole background a white color. See the touchable opacity I have'nt given any grey color and of you look at the simulator screen you can see a grey color around the continue button. Please find the attached screenshots for clarity.

Screenshot 2021-02-24 at 4 02 43 PM Screenshot 2021-02-24 at 4 03 01 PM Screenshot 2021-02-24 at 4 03 18 PM
ice-chillios commented 3 years ago

@vinaynarayankutty It's still not related to the package, as it's just TextInput's components, I have no idea what is actually happening here, but it's related more to React-Native. It's just in "selected" state. Check on a real device.