Add the preview and pop feature To use the feature you simply call `navigator.push()` but with additional parameter `previewViewID` which is a React Node. ```js <TouchableOpacity onPressIn={() => this.props.navigator.push({ screen: 'screenid', previewView: this.viewRef, previewActions: [{ title: 'Foo', style: 'selected', // none, selected, destructive actions: [{ title: 'Bar' }], }], }) /> ```
|
|
||
17 |
|
17 |
|
18 |
|
18 |
|
19 |
|
19 |
|
20 |
|
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
21 |
|
31 |
|
22 |
|
32 |
|
23 |
|
33 |
|
|
|
||
295 |
|
305 |
|
296 |
|
306 |
|
297 |
|
307 |
|
|
308 |
|
|
|
309 |
|
|
298 |
|
310 |
|
299 |
|
311 |
|
300 |
|
312 |
|
|
|
||
348 |
|
360 |
|
349 |
|
361 |
|
350 |
|
362 |
|
|
363 |
|
|
|
364 |
|
|
|
365 |
|
|
|
366 |
|
|
|
367 |
|
|
|
368 |
|
|
|
369 |
|
|
|
370 |
|
|
|
371 |
|
|
|
||
2 |
|
2 |
|
3 |
|
3 |
|
4 |
|
4 |
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
9 |
|
11 |
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
21 |
|
25 |
|
22 |
|
26 |
|
23 |
|
27 |
|
24 |
|
28 |
|
25 |
|
29 |
|
|
30 |
|
|
26 |
|
31 |
|
27 |
|
32 |
|
28 |
|
33 |
|
|
|
||
34 |
|
34 |
|
35 |
|
35 |
|
36 |
|
36 |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
37 |
|
59 |
|
38 |
|
60 |
|
39 |
|
61 |
|
|
|
||
107 |
|
129 |
|
108 |
|
130 |
|
109 |
|
131 |
|
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
|
|
110 |
|
139 |
|
111 |
|
140 |
|
112 |
|
141 |
|
|
|
||
1 |
|
1 |
|
2 |
|
|
|
|
2 |
|
|
3 |
|
3 |
|
4 |
|
4 |
|
5 |
|
5 |
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
6 |
|
22 |
|
7 |
|
23 |
|
8 |
|
24 |
|
|
|
||
2 |
|
2 |
|
3 |
|
3 |
|
4 |
|
4 |
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
5 |
|
9 |
|
6 |
|
10 |
|
7 |
|
11 |
|
|
|
||
160 |
|
164 |
|
161 |
|
165 |
|
162 |
|
166 |
|
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
|
|
163 |
|
194 |
|
164 |
|
195 |
|
165 |
|
196 |
|
|
|
||
18 |
|
18 |
|
19 |
|
19 |
|
20 |
|
20 |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
21 |
|
25 |
|
22 |
|
26 |
|
23 |
|
27 |
|
|
|
||
19 |
|
19 |
|
20 |
|
20 |
|
21 |
|
21 |
|
22 |
|
|
|
|
22 |
|
|
23 |
|
23 |
|
24 |
|
24 |
|
25 |
|
25 |
|
|
|
||
794 |
|
794 |
|
795 |
|
795 |
|
796 |
|
796 |
|
|
797 |
|
|
|
798 |
|
|
|
799 |
|
|
|
800 |
|
|
|
801 |
|
|
|
802 |
|
|
|
803 |
|
|
|
804 |
|
|
|
805 |
|
|
|
806 |
|
|
|
807 |
|
|
|
808 |
|
|
|
809 |
|
|
|
810 |
|
|
|
811 |
|
|
|
812 |
|
|
|
813 |
|
|
|
814 |
|
|
|
815 |
|
|
|
816 |
|
|
|
817 |
|
|
|
818 |
|
|
|
819 |
|
|
|
820 |
|
|
|
821 |
|
|
|
822 |
|
|
|
823 |
|
|
|
824 |
|
|
|
825 |
|
|
|
826 |
|
|
|
827 |
|
|
797 |
|
828 |
|
798 |
|
829 |
|
799 |
|
830 |
|
|
|
||
830 |
|
861 |
|
831 |
|
862 |
|
832 |
|
863 |
|
|
864 |
|
|
|
865 |
|
|
|
866 |
|
|
|
867 |
|
|
|
868 |
|
|
|
869 |
|
|
|
870 |
|
|
|
871 |
|
|
|
872 |
|
|
|
873 |
|
|
|
874 |
|
|
|
875 |
|
|
|
876 |
|
|
|
877 |
|
|
|
878 |
|
|
|
879 |
|
|
|
880 |
|
|
|
881 |
|
|
|
882 |
|
|
|
883 |
|
|
|
884 |
|
|
|
885 |
|
|
|
886 |
|
|
|
887 |
|
|
|
888 |
|
|
|
889 |
|
|
|
890 |
|
|
|
891 |
|
|
|
892 |
|
|
|
893 |
|
|
|
894 |
|
|
|
895 |
|
|
833 |
|
896 |
|
|
|
||
1 |
|
1 |
|
|
2 |
|
|
|
3 |
|
|
2 |
|
4 |
|
3 |
|
5 |
|
4 |
|
6 |
|
|
|
||
234 |
|
236 |
|
235 |
|
237 |
|
236 |
|
238 |
|
|
239 |
|
|
237 |
|
240 |
|
|
241 |
|
|
|
242 |
|
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
238 |
|
248 |
|
239 |
|
249 |
|
240 |
|
250 |
|
|
|
||
246 |
|
256 |
|
247 |
|
257 |
|
248 |
|
258 |
|
|
259 |
|
|
|
260 |
|
|
249 |
|
261 |
|
250 |
|
262 |
|
251 |
|
263 |
|
|
|
||
270 |
|
282 |
|
271 |
|
283 |
|
272 |
|
284 |
|
|
285 |
|
|
|
286 |
|
|
|
287 |
|
|
|
288 |
|
|
273 |
|
289 |
|
274 |
|
290 |
|
275 |
|
291 |
|