You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a list component that lets you add new items when you press a button, and I am able to scroll to the end automatically (smoothly) as expected when an item is added with LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut); from LayoutAnimation from react-native. The issue is that I have been using react-native-reanimated for most of the other things in my app, so then using any type of Animation that is not from reanimated seems to break everything on Android, so I have been trying to achieve the same behavior from LayoutAnimation but after reading the reanimated documentation I can't seem to find a way. Does anyone know how I can go about this with react-native-reanimated?
I tried using Animated.ScrollView (from react-native-reanimated) with the layout paramater, as well as using Animated.View on other parts as well, and tried using withTiming and scrollTo from reanimated as well. None of them worked (at least the way I tried).
PS: This is only an issue on Android as iOS seems to handle Animations from multiple libraries better.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
I have a list component that lets you add new items when you press a button, and I am able to scroll to the end automatically (smoothly) as expected when an item is added with LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut); from LayoutAnimation from react-native. The issue is that I have been using react-native-reanimated for most of the other things in my app, so then using any type of Animation that is not from reanimated seems to break everything on Android, so I have been trying to achieve the same behavior from LayoutAnimation but after reading the reanimated documentation I can't seem to find a way. Does anyone know how I can go about this with react-native-reanimated?
I tried using Animated.ScrollView (from react-native-reanimated) with the layout paramater, as well as using Animated.View on other parts as well, and tried using withTiming and scrollTo from reanimated as well. None of them worked (at least the way I tried).
PS: This is only an issue on Android as iOS seems to handle Animations from multiple libraries better.
Beta Was this translation helpful? Give feedback.
All reactions