Closed neiker closed 3 years ago
This might have been an issue with the 5.0.0-alpha1
version that you were using. Please upgrade to the latest version which officially supports React Navigation 5 and 6.
https://github.com/IjzerenHein/react-navigation-shared-element/releases/tag/v3.1.2
I was furthermore unable to reproduce this problem in the example
app. Please add a test-case to the example
app and I can have a closer look. Closing this for now, but feel free to reopen with additional info/repro case when this is still a problem.
I have this 2 screens:
When a photo is pressed on
Album
:On the
Photo
screen I have an ScrollView with all photos with snapToInterval:But inside
sharedElementsConfig
the route params are never updated and it always get the oldphotoId
. As can be seen on this video, the animation after swap to a different image and pressing back is wrong:https://user-images.githubusercontent.com/688444/104109885-8dc46400-52d2-11eb-8347-136a0df4170c.mov