-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image Flickering on transition #39
Comments
Same issue here, shared element flickers once (fades out and back in) and images inside it are reloaded. To clarify, the animation I'm using is |
I have reworked some of the components that I used on that example to make it closer to the example you see in the docs. https://snack.expo.io/YM5YkZNCx You can see that it looks much better now, but we still have some resizing problems in the image ( I don't want to be as noticeable as it is right now ) and the name component also resizes both the text and the view. |
Same |
Same here |
Did anyone get any solution for this yet? |
a workaround i found is to set the transition time to 500ms or less. but if you want a more smooth transition, this isn't gonna save you. check it here at line 37 |
i found this solution "@react-navigation/native": "^5.9.3",
|
Thank you!! |
Unfortunately, changing the duration is not working well for the transitions I have. Would be nice to have this issue prioritised and fixed. Thank you! |
Having the same issue. But whats weird is its only happening in release build not in development. |
To fix this you'll need to animate the image and the bottom label independently. Put |
As for the image flicking, this appears to be related to |
This issue is related to the react-navigation binding and |
Any update on this? Flickering still seems to be an issue. |
Same problems on android 12. |
"@react-navigation/native": "^5.8.10",
Setting stack screen option |
sadly the image still flickers with |
Much things have changed since the original report of this issue. Can you provide a repro @pouyarezvani ? |
@IjzerenHein You mentioned many things have changed. Also, can nested sharedElementTransition navigators be used with this library? |
@dev-andremonteiro @pouyarezvani @IjzerenHein I am using expo-image (similar to react native fast-image), with proper cache policies, and I can confirm these tricks doesn't work:
transitionSpec : {
open : {animation:'timing', config : {duration:300}},
close : {animation:'timing', config : {duration:300}}
},
cardStyleInterpolator : ({current : {progress}}) => {
return {
cardStyle : {
opacity : progress
}
}
} Its quite annoying but it seems to be a problem related to react-native itself and cache policies. Not sure if there is a workaround, but in my scenario I have the following:
|
this works completely smooth af on iOS but on Android the image shrinks and then gets to the size while transitioning from screen A to B. This library is awesome and would love to have a solution for android Image sizing issue |
Hello! First I want to thank you so much for maintaining such an amazing library.
I am tring to add this to a new project with react-native and expo, I tried combining a carousel and shared element to create a unique UI that shares a slide photo between screens but it seems there's something wrong with the transition animation. on Android: The photo doesn't reload but the hole screen flickers, it's easy to see the flickering.
on iOS: There's no flickering but the image needs to be reloaded even with it being cached, so you end up with a white square at the end of the transition.
Here is the code so you can take a look at : https://snack.expo.io/OniMGqZTw
Thanks!
The text was updated successfully, but these errors were encountered: