You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/redux-integration.md
+7-26Lines changed: 7 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Some folks like to have their navigation state stored in the same place as the r
10
10
11
11
## Overview
12
12
13
-
1. To handle your app's navigation state in Redux, you can pass your own [`navigation`](navigation-prop.html) prop to a navigator. This `navigation` prop is an object that must contain the navigation [`state`](navigation-prop.html#state-the-screen-s-current-state-route), [`dispatch`](navigation-prop.html#dispatch-send-an-action-to-the-router), and `addListener` properties.
13
+
1. To handle your app's navigation state in Redux, you can pass your own [`navigation`](navigation-prop.html) prop to a navigator. This `navigation` prop is an object that must contain the navigation [`state`](navigation-prop.html#state-the-screen-s-current-state-route), [`dispatch`](navigation-prop.html#dispatch-send-an-action-to-the-router), and `addListener` properties.`react-navigation-redux-helpers` handles this for your behind the scenes with a HOC called `reduxifyNavigator` that takes your navigation state and a dispatch function as props, and constructs a custom `navigation` prop.
14
14
15
15
2. The aforementioned navigation `state` will need to be kept updated using React Navigation's navigation reducer. You will call this reducer from your Redux master reducer.
0 commit comments