Web / React native Interview questions
How do I navigate to a component from middleware/component where there are no navigation props?
You can dispatch navigation actions from the navigation container where you do not have access to the navigation prop, such as a Redux middleware.
To navigate from inside a component without needing to pass the navigation prop down, you may use useNavigation hook.
More Related questions...