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

navigation.dangerouslyGetState is not a function error #202

Closed Bayramito closed 2 years ago

Bayramito commented 2 years ago

Hello,

I just upgraded react navigation rom v5 to v6. On v5 everything was working fine with shared elements but once installed everything, my app instantly crashed at the beginning with this error. Simulator Screen Shot - iPhone 12 - 2021-09-28 at 17 21 44

Library Info

"react-native": "0.64.2",
"@react-navigation/bottom-tabs": "^6.0.7",
"@react-navigation/compat": "^5.1.9",
"@react-navigation/core": "^5.14.3",
"@react-navigation/drawer": "^6.1.6",
"@react-navigation/elements": "^1.1.2",
"@react-navigation/material-bottom-tabs": "^6.0.7",
"@react-navigation/material-top-tabs": "^6.0.4",
"@react-navigation/native": "^6.0.4",
"@react-navigation/stack": "^6.0.9",
"react-native-shared-element": "^0.8.3",
"react-navigation-shared-element": "^5.0.0-alpha1",
Bayramito commented 2 years ago

i just noticed that i have very old version of shared elements .... upgraded it and works fine now closed!