In the official docs of react-navigation it says:
It's highly recommended to use the methods on the navigation object instead of using action creators and
dispatch. It should only be used for advanced use cases.
But why is that? I didn't find any explanation for this strong recommendation in the react-navigation docs.
With CommonActions (or NavigationActions in react-navigation smaller equal 4.x) I can nicely create navigation functions which I can access from anywhere without the need of passing a navigation prop around. And I didn't encounter issues with it which I could relate to it being a CommonAction instead of a part of the navigation prop - even in more complex scenarios with many screens and special routing arrangements.