IjzerenHein / react-navigation-shared-element

React Navigation bindings for react-native-shared-element 💫
https://github.com/IjzerenHein/react-native-shared-element
MIT License
1.27k stars 124 forks source link

error when triggering goback #109

Open itaisegal opened 3 years ago

itaisegal commented 3 years ago

"react-navigation-shared-element": "^5.0.0-alpha0" "react-native-shared-element": "^0.7.0" "@react-navigation/bottom-tabs": "^5.8.0", "@react-navigation/drawer": "^5.9.0", "@react-navigation/native": "^5.7.3", "@react-navigation/stack": "^5.9.0",

Warning: Can't perform a React state update on an unmounted component.

going to the details screen works great with animation and all, clicking on goBack works with animation but an error pops and the SharedElement seems to be freeze in place (scrolling, and it's stuck in position.)

please, your kind help!

KDKHD commented 3 years ago

Posted a solution that worked for me in #91

itaisegal commented 3 years ago

thanks @KDKHD , but it didn't work for me... :(

jzxchiang1 commented 3 years ago

I got the same exact issue, even with @KDKHD's solution.

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. in Card (at CardContainer.tsx:206) in CardContainer (at CardStack.tsx:623) in RNSScreen (at createAnimatedComponent.js:217) in AnimatedComponent (at createAnimatedComponent.js:278) in AnimatedComponentWrapper (at src/index.native.tsx:147) in Screen (at Screens.tsx:74) in MaybeScreen (at CardStack.tsx:616)