The following PR introduces improved support for Context api and other api's which wrap the root view. ## Context api Navigation.registerComponent('navigation.playground.ContextScreen', () => (props) => ( <TitleContext.Provider value={'Title from Provider'}> <ContextScreen {...props} /> </TitleContext.Provider> ), () => ContextScreen); ## Redux Navigation.registerComponent('navigation.playground.ReduxScreen', () => (props) => ( <Provider store={reduxStore}> <ReduxScreen {...props} /> </Provider> ), () => ReduxScreen); ## Plain Component - not changed Navigation.registerComponent('navigation.playground.MyScreen', () => MyScreen); This PR also upgrades the TypeScript version to 3.2.0 and RN version used in the playground app to 0.57.7 * New Android build flavor - `reactNative57_7` * Unit test coverage is disabled, for some reason it broke after upgrading to RN 0.57.7
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
||
1 |
|
|
||
1 |
|
|
||
18 | 18 |
|
19 | 19 |
|
20 | 20 |
|
21 |
|
|
21 |
|
|
22 | 22 |
|
23 | 23 |
|
24 | 24 |
|
25 | 25 |
|
26 |
|
|
26 |
|
|
27 | 27 |
|
28 | 28 |
|
29 | 29 |
|
|
||
41 | 41 |
|
42 | 42 |
|
43 | 43 |
|
44 |
|
|
44 |
|
|
45 | 45 |
|
46 | 46 |
|
47 | 47 |
|
|
||
64 | 64 |
|
65 | 65 |
|
66 | 66 |
|
67 |
|
|
67 |
|
|
68 | 68 |
|
69 | 69 |
|
70 | 70 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
||
31 | 31 |
|
32 | 32 |
|
33 | 33 |
|
34 |
|
|
34 |
|
|
35 | 35 |
|
36 | 36 |
|
37 | 37 |
|
38 | 38 |
|
39 |
|
|
39 | 40 |
|
40 |
|
|
41 | 41 |
|
42 | 42 |
|
43 | 43 |
|
44 |
|
|
44 |
|
|
45 | 45 |
|
46 | 46 |
|
47 | 47 |
|
|
||
56 | 56 |
|
57 | 57 |
|
58 | 58 |
|
59 |
|
|
60 |
|
|
61 |
|
|
59 |
|
|
60 |
|
|
62 | 61 |
|
63 | 62 |
|
64 | 63 |
|
|
||
71 | 70 |
|
72 | 71 |
|
73 | 72 |
|
74 |
|
|
73 |
|
|
75 | 74 |
|
76 | 75 |
|
77 | 76 |
|
|
||
1 | 1 |
|
2 | 2 |
|
3 |
|
|
3 |
|
|
4 | 4 |
|
5 | 5 |
|
6 | 6 |
|
7 | 7 |
|
8 | 8 |
|
9 | 9 |
|
10 |
|
|
11 |
|
|
10 |
|
|
12 | 11 |
|
13 | 12 |
|
14 | 13 |
|
|
||
47 | 47 |
|
48 | 48 |
|
49 | 49 |
|
50 |
|
|
51 | 50 |
|
52 | 51 |
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
52 |
|
|
58 | 53 |
|
59 | 54 |
|
60 | 55 |
|
|
||
73 | 68 |
|
74 | 69 |
|
75 | 70 |
|
76 |
|
|
71 |
|
|
77 | 72 |
|
78 | 73 |
|
79 | 74 |
|
|
||
27 | 27 |
|
28 | 28 |
|
29 | 29 |
|
30 |
|
|
30 |
|
|
31 | 31 |
|
32 | 32 |
|
33 | 33 |
|
34 | 34 |
|
35 |
|
|
35 |
|
|
36 | 36 |
|
37 | 37 |
|
38 | 38 |
|
39 | 39 |
|
40 | 40 |
|
41 |
|
|
41 |
|
|
42 | 42 |
|
43 |
|
|
43 |
|
|
44 | 44 |
|
45 | 45 |
|
46 | 46 |
|
47 |
|
|
48 | 47 |
|
49 | 48 |
|
50 | 49 |
|
51 |
|
|
50 |
|
|
52 | 51 |
|
53 | 52 |
|
54 | 53 |
|
|
||
64 | 63 |
|
65 | 64 |
|
66 | 65 |
|
67 |
|
|
66 |
|
|
68 | 67 |
|
69 | 68 |
|
70 | 69 |
|
|
||
1 | 1 |
|
2 |
|
|
3 | 2 |
|
4 | 3 |
|
4 |
|
|
5 | 5 |
|
6 | 6 |
|
7 |
|
|
7 |
|
|
8 | 8 |
|
9 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
10 | 15 |
|
11 |
|
|
16 |
|
|
12 | 17 |
|
13 | 18 |
|
14 | 19 |
|
|
||
1 | 1 |
|
2 |
|
|
2 |
|
|
3 | 3 |
|
4 | 4 |
|
5 | 5 |
|
|
||
12 | 12 |
|
13 | 13 |
|
14 | 14 |
|
15 |
|
|
15 | 16 |
|
16 | 17 |
|
17 | 18 |
|
|
||
50 | 51 |
|
51 | 52 |
|
52 | 53 |
|
54 |
|
|
53 | 55 |
|
54 | 56 |
|
55 | 57 |
|
56 |
|
|
58 |
|
|
57 | 59 |
|
58 | 60 |
|
59 | 61 |
|
|
||
63 | 65 |
|
64 | 66 |
|
65 | 67 |
|
66 |
|
|
68 |
|
|
67 | 69 |
|
68 | 70 |
|
69 | 71 |
|
|
||
71 | 73 |
|
72 | 74 |
|
73 | 75 |
|
74 |
|
|
76 |
|
|
75 | 77 |
|
76 | 78 |
|
77 | 79 |
|
78 | 80 |
|
79 | 81 |
|
80 | 82 |
|
81 |
|
|
83 |
|
|
82 | 84 |
|
83 | 85 |
|
84 | 86 |
|
|
||
87 | 89 |
|
88 | 90 |
|
89 | 91 |
|
90 |
|
|
92 |
|
|
91 | 93 |
|
92 | 94 |
|
93 | 95 |
|
94 | 96 |
|
95 | 97 |
|
96 |
|
|
98 |
|
|
97 | 99 |
|
98 | 100 |
|
99 | 101 |
|
|
||
104 | 106 |
|
105 | 107 |
|
106 | 108 |
|
107 |
|
|
109 |
|
|
108 | 110 |
|
109 | 111 |
|
110 | 112 |
|
111 | 113 |
|
112 | 114 |
|
113 | 115 |
|
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
116 | 118 |
|
117 | 119 |
|
118 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
119 | 123 |
|
120 | 124 |
|
121 | 125 |
|
122 | 126 |
|
123 |
|
|
127 |
|
|
124 | 128 |
|
125 | 129 |
|
126 | 130 |
|
127 | 131 |
|
128 | 132 |
|
129 | 133 |
|
130 |
|
|
131 |
|
|
134 |
|
|
135 |
|
|
132 | 136 |
|
133 | 137 |
|
134 | 138 |
|
135 |
|
|
136 |
|
|
139 |
|
|
140 |
|
|
137 | 141 |
|
138 | 142 |
|
139 | 143 |
|
140 | 144 |
|
141 | 145 |
|
142 | 146 |
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
|
|
159 |
|
|
143 | 160 |
|
144 | 161 |
|
145 | 162 |
|
|
||
162 | 179 |
|
163 | 180 |
|
164 | 181 |
|
165 |
|
|
182 |
|
|
166 | 183 |
|
167 | 184 |
|
168 | 185 |
|
169 | 186 |
|
170 | 187 |
|
188 |
|
|
171 | 189 |
|
190 |
|
|
191 |
|
|
||
9 | 9 |
|
10 | 10 |
|
11 | 11 |
|
12 |
|
|
12 |
|
|
13 | 13 |
|
14 | 14 |
|
15 | 15 |
|
16 | 16 |
|
17 |
|
|
17 | 18 |
|
18 | 19 |
|
19 | 20 |
|
|
||
44 | 45 |
|
45 | 46 |
|
46 | 47 |
|
47 |
|
|
48 | 48 |
|
49 | 49 |
|
50 | 50 |
|
|
||
57 | 57 |
|
58 | 58 |
|
59 | 59 |
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
60 |
|
|
61 |
|
|
67 | 62 |
|
68 | 63 |
|
69 |
|
|
64 |
|
|
70 | 65 |
|
71 | 66 |
|
72 | 67 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
||
60 | 60 |
|
61 | 61 |
|
62 | 62 |
|
63 |
|
|
63 |
|
|
64 | 64 |
|
65 | 65 |
|
66 |
|
|
66 |
|
|
67 | 67 |
|
68 | 68 |
|
69 | 69 |
|
70 |
|
|
71 |
|
|
72 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
73 | 74 |
|
74 | 75 |
|
75 |
|
|
76 |
|
|
77 |
|
|
76 | 78 |
|
77 | 79 |
|
78 | 80 |
|
|
||
81 | 83 |
|
82 | 84 |
|
83 | 85 |
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
86 |
|
|
94 | 87 |
|
95 | 88 |
|
96 | 89 |
|
90 |
|
|
91 |
|
|
92 |
|
|
97 | 93 |
|
98 | 94 |
|
99 | 95 |
|
|
||
112 | 108 |
|
113 | 109 |
|
114 | 110 |
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 | 111 |
|
124 | 112 |
|
125 | 113 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
||
2 | 2 |
|
3 | 3 |
|
4 | 4 |
|
5 |
|
|
5 |
|
|
6 | 6 |
|
7 | 7 |
|
8 | 8 |
|
|
||
28 | 28 |
|
29 | 29 |
|
30 | 30 |
|
31 |
|
|
31 |
|
|
32 | 32 |
|
33 | 33 |
|
34 | 34 |
|
|
||
876 | 876 |
|
877 | 877 |
|
878 | 878 |
|
879 |
|
|
879 |
|
|
880 | 880 |
|
881 | 881 |
|
882 | 882 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
||
14 | 14 |
|
15 | 15 |
|
16 | 16 |
|
17 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
18 | 21 |
|
19 | 22 |
|
20 | 23 |
|
|
||
113 | 116 |
|
114 | 117 |
|
115 | 118 |
|
116 |
|
|
117 |
|
|
119 |
|
|
120 |
|
|
118 | 121 |
|
119 | 122 |
|
120 | 123 |
|
|
||
41 | 41 |
|
42 | 42 |
|
43 | 43 |
|
44 |
|
|
44 | 45 |
|
45 | 46 |
|
46 | 47 |
|
|
||
293 | 294 |
|
294 | 295 |
|
295 | 296 |
|
297 |
|
|
298 |
|
|
299 |
|
|
300 |
|
|
301 |
|
|
302 |
|
|
303 |
|
|
304 |
|
|
296 | 305 |
|
297 | 306 |
|
298 | 307 |
|
|
||
1 |
|
|
1 | 2 |
|
2 | 3 |
|
3 | 4 |
|
|
||
27 | 28 |
|
28 | 29 |
|
29 | 30 |
|
31 |
|
|
32 |
|
|
30 | 33 |
|
31 | 34 |
|
32 | 35 |
|
|
||
38 | 41 |
|
39 | 42 |
|
40 | 43 |
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
41 | 49 |
|
42 | 50 |
|
43 | 51 |
|
|
||
7 | 7 |
|
8 | 8 |
|
9 | 9 |
|
10 |
|
|
10 | 11 |
|
11 | 12 |
|
12 | 13 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
||
6 | 6 |
|
7 | 7 |
|
8 | 8 |
|
9 |
|
|
9 |
|
|
10 | 10 |
|
|
||
13 | 13 |
|
14 | 14 |
|
15 | 15 |
|
16 |
|
|
16 |
|
|
17 | 17 |
|
18 | 18 |
|
19 | 19 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
||
1 |
|
|
1 |
|
|
2 | 2 |
|
3 | 3 |
|
4 | 4 |
|