I went through hell updating my project and finally got things working and I noticed that Animated.ScrollView scrollTo is not working properly. This is the behavior after I upgraded to Expo SDK 33.
The problem is when adding a new card it stopped scrolling on the X-axis when moving forward, but when deleting a card and moving in reverse the animation remained intact. All that has changed is me upgrading to SDK 33.
This is the functionality before upgrading as you can notice I am able to animate moving forward and backward on the x-axis whereas after upgrading I am only able to animate moving backward.
This is how
The code I am using is
this.scroller.getNode().scrollTo({
x:
(cardWidth + cardMargin * 2) * this.state.flashcardsPosition.length,
y: 0,
animated: true
});
I have attempted to pass random numbers to see if it scrolled and it was unable to scroll. Hopefully, this makes a bit of sense. Please let me know if I can give any more information on this topic to help solve this issue.