'why do I get navigation.dangerouslyGetState isn't a function. when I change from createStackNavigator to createSharedElementStackNavigator

I have nested stack navigator inside tab navigator. but I get the above error when I change createStackNavigator to createSharedElementStackNavigator



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source