react-native-floating-label-input icon indicating copy to clipboard operation
react-native-floating-label-input copied to clipboard

Prevent floating animation if there is default value

Open Hantex9 opened this issue 3 years ago • 5 comments

Hello, I need that floating animation doesn't start if there is default value setted preventing the following UI bug effect:

https://user-images.githubusercontent.com/34343582/175095192-d0c984ec-bce2-471f-9366-0b654180c5e2.mp4

There is some property that I can edit to achieve what I'm looking for?

Hantex9 avatar Jun 22 '22 17:06 Hantex9

Hi @Hantex9, could you please try setting animationDuration to a very low value, like 50, or even lower? This would be a workaround, and then I'd treat this.

Cnilton avatar Jun 24 '22 21:06 Cnilton

Hi @Cnilton, setting animationDuration to a value low than 50 (i.e. 20) seems to be a workaround but if i run the app on a slow device, it is still visible the transaction. Anyway let me know when you can fix it with a solution.

Thanks!

Hantex9 avatar Jun 27 '22 11:06 Hantex9

Thank you for this very useful library @Cnilton ! I also have this problem. The very low value on animationDuration just speeds up the animation but I can still see it. No idea yet on how to fix this for all devices ? Otherwise I'll try to find a quick fix.

Atom54 avatar Nov 22 '22 20:11 Atom54

Provided PR #147 that solve the issue

Hantex9 avatar Feb 03 '23 22:02 Hantex9

Hi @Hantex9, I'll take a look!

Cnilton avatar Aug 19 '23 16:08 Cnilton