IjzerenHein / react-navigation-shared-element

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

Not working when nested inside Drawer navigator and Tab navigator #249

Open marekStef opened 1 year ago

marekStef commented 1 year ago

I do have more advanced app with the following structure:

- Drawer Navigator
     - Other Navigators...
     - Tab Navigator
            - Stack Navigator 1
            - Stack Navigator 2
            - Stack Navigator 3

In Stack Navigator 3 I do have multiple screens.

What I am trying to achieve is a gallery ( photos in a grid with opening transition similar to that of apple photos or Google photos app ). GridScreen and Screen for the specific image are both in one Navigator.

The problem is that when I exchange the Stack navigator 3 from react navigation for stack navigator from react-navigation-shared-elements and press on the photo, the app freezes with no error messages nowhere to be seen.

I presume react-navigation-shared-elements only works with more basic structure? Does anyone know or is this a bug?

"react-native-reanimated": "~2.8.0"
"react-native-shared-element": "0.8.4",
"react-navigation-shared-element": "^3.1.3",
"react": "17.0.2",
"expo": "~45.0.0",
drewbietron commented 1 year ago

I am experiencing this as well. I have a tab navigator, each that renders their own stack navigator. Not sure what the error is, as the app just freezes as posted above. Did you ever figure anything out with this @marekStef?

p-syche commented 1 year ago

Hello @marekStef , @drewbietron

Could you provide a minimal repro or an Expo snack with this issue? Thank you!

nateshmbhat commented 1 year ago

same issue :/

paul12p-pichincha commented 8 months ago

any update?