react-native-otp-entry icon indicating copy to clipboard operation
react-native-otp-entry copied to clipboard

Wrap theme containers in `Animated.View`

Open willashley23 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I want to be able to apply a loading animation to the OTP, such as a shimmer or "breathe" effect when the code is being validated. This is not possible because the exposed theme containers eg pinCodeContainerStyle and pinCodeTextStyle are not Animated.Views

Describe the solution you'd like I think as many of these containers should be wrapped in Animated to give greater creative control to consumers

Describe alternatives you've considered Wrapping the entire thing in an Animated.View is limiting and doesnt allow granular loading effects per cel.

willashley23 avatar Sep 21 '24 05:09 willashley23

Hi @willashley23 . Pretty fair point. I've started working on the solution, which converts plain components to their animated version, just by passing a single prop

anday013 avatar Sep 28 '24 16:09 anday013