Layout animation on data change
Hello, is there any way to animate the carousel items into their new positions when the data changes.
P.S. I'm new to the react native ecosystem so if there are already any resources I should be looking at I would also apreciate it.
https://github.com/dohooo/react-native-reanimated-carousel/blob/main/docs/props.md#ref
useEffect(()=>{
ref.current.scrollTo({index:0,animated:true})
},[data])
I think they mean layout transitions when adding/removing items from the carousel.
Hello, is there any way to animate the carousel items into their new positions when the data changes.
This is a complicated logic. First, how do we define where the current element should be?
I think they mean layout transitions when adding/removing items from the carousel.
uhh, I don’t think so 🧐