1

I'm trying to achieve an animation on blur and focus of TextInput with react-native-reanimated when the keyboard is opening or dismissing, the height will collapse but the problem here is if we have an SVG inside Animated.View it will not collapse like text

logo before collapsing

another pic after collapsing

code on expo

any improvements on the code will be appreciated too

Hamed
  • 317
  • 1
  • 8
  • 1
    I just want to say that having an expo snack linked to the question is super amazing and makes it so much easier to help – PhantomSpooks Feb 28 '23 at 22:49

1 Answers1

2

Try to add overflow: 'hidden' to your logoContainer style. Tested on my device, I think it behaves the way you want it.

Hope this helps!

joaocout
  • 518
  • 1
  • 5