IjzerenHein / react-native-shared-element

Native shared element transition "primitives" for react-native 💫
MIT License
2.21k stars 97 forks source link

navigation.dangerouslyGetState() has been deprecated #73

Closed simonas-kralikas closed 3 years ago

simonas-kralikas commented 3 years ago

Hey,

In react-navigation v6 navigation.dangerouslyGetState() has been dropped and replaced to navigation.getState().

Could we get some kind of patch?

Thanks.

https://reactnavigation.org/docs/upgrading-from-5.x/#dropped-dangerously-from-dangerouslygetparent-and-dangerouslygetstate

IjzerenHein commented 3 years ago

This is supported by the official 3.1.2 release: https://github.com/IjzerenHein/react-navigation-shared-element/releases/tag/v3.1.2