Commit f4f8e9c
committed
nav: Stop using react-navigation-redux-helpers.
We've long used Redux to manage our navigation state, with a helper
package called react-navigation-redux-helpers. React Navigation has
recommended against this for quite some time.
In this commit:
- Stop using r-n-r-h's `createReduxContainer`, and use React
Navigation's own `createAppContainer` instead.
- Rename `AppWithNavigation` (arguably better named
`ReduxContainer` before this commit) to `AppContainer`
- Rename `NavigationService.reduxContainerRef` to
`NavigationService.appContainerRef` and change some of
`NavigationService`'s implementation details to handle the new
shape.
- Remove use of `createReactNavigationReduxMiddleware`.
- Remove `state.nav`.
- Remove `navReducer`.
- Adjust types as necessary.
- Remove 'nav' from `discardKeys` in src/boot/store.js
Fixes: #38041 parent 4262acb commit f4f8e9c
8 files changed
+27
-105
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | 211 | | |
217 | 212 | | |
218 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
26 | 18 | | |
27 | 19 | | |
28 | | - | |
29 | | - | |
| 20 | + | |
| 21 | + | |
30 | 22 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 23 | + | |
36 | 24 | | |
37 | 25 | | |
38 | 26 | | |
39 | | - | |
40 | | - | |
| 27 | + | |
| 28 | + | |
41 | 29 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 30 | + | |
48 | 31 | | |
49 | 32 | | |
50 | 33 | | |
51 | 34 | | |
52 | 35 | | |
53 | | - | |
| 36 | + | |
54 | 37 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | 201 | | |
209 | 202 | | |
210 | 203 | | |
| |||
360 | 353 | | |
361 | 354 | | |
362 | 355 | | |
363 | | - | |
364 | 356 | | |
365 | 357 | | |
366 | 358 | | |
| |||
0 commit comments