@react-native/virtualized-lists 0.72.0 → 0.72.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1200 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`VirtualizedSectionList handles nested lists 1`] = `
4
- <RCTScrollView
5
- data={
6
- Array [
7
- Object {
8
- "data": Array [
9
- Object {
10
- "key": "outer0",
11
- },
12
- Object {
13
- "key": "outer1",
14
- },
15
- ],
16
- "title": "outer",
17
- },
18
- ]
19
- }
20
- getItem={[Function]}
21
- getItemCount={[Function]}
22
- keyExtractor={[Function]}
23
- onContentSizeChange={[Function]}
24
- onLayout={[Function]}
25
- onMomentumScrollBegin={[Function]}
26
- onMomentumScrollEnd={[Function]}
27
- onScroll={[Function]}
28
- onScrollBeginDrag={[Function]}
29
- onScrollEndDrag={[Function]}
30
- renderItem={[Function]}
31
- scrollEventThrottle={50}
32
- stickyHeaderIndices={Array []}
33
- >
34
- <View>
35
- <View
36
- onFocusCapture={[Function]}
37
- onLayout={[Function]}
38
- style={null}
39
- />
40
- <View
41
- onFocusCapture={[Function]}
42
- onLayout={[Function]}
43
- style={null}
44
- >
45
- <View
46
- data={
47
- Array [
48
- Object {
49
- "data": Array [
50
- Object {
51
- "key": "outer0:inner0",
52
- },
53
- Object {
54
- "key": "outer0:inner1",
55
- },
56
- ],
57
- "title": "inner",
58
- },
59
- ]
60
- }
61
- getItem={[Function]}
62
- getItemCount={[Function]}
63
- horizontal={false}
64
- keyExtractor={[Function]}
65
- onContentSizeChange={[Function]}
66
- onLayout={[Function]}
67
- onMomentumScrollBegin={[Function]}
68
- onMomentumScrollEnd={[Function]}
69
- onScroll={[Function]}
70
- onScrollBeginDrag={[Function]}
71
- onScrollEndDrag={[Function]}
72
- renderItem={[Function]}
73
- scrollEventThrottle={50}
74
- stickyHeaderIndices={Array []}
75
- >
76
- <View
77
- onFocusCapture={[Function]}
78
- onLayout={[Function]}
79
- style={null}
80
- />
81
- <View
82
- onFocusCapture={[Function]}
83
- onLayout={[Function]}
84
- style={null}
85
- >
86
- <item
87
- title="outer0:inner0"
88
- />
89
- </View>
90
- <View
91
- onFocusCapture={[Function]}
92
- onLayout={[Function]}
93
- style={null}
94
- >
95
- <item
96
- title="outer0:inner1"
97
- />
98
- </View>
99
- <View
100
- onFocusCapture={[Function]}
101
- onLayout={[Function]}
102
- style={null}
103
- />
104
- </View>
105
- </View>
106
- <View
107
- onFocusCapture={[Function]}
108
- onLayout={[Function]}
109
- style={null}
110
- >
111
- <RCTScrollView
112
- data={
113
- Array [
114
- Object {
115
- "data": Array [
116
- Object {
117
- "key": "outer1:inner0",
118
- },
119
- Object {
120
- "key": "outer1:inner1",
121
- },
122
- ],
123
- "title": "inner",
124
- },
125
- ]
126
- }
127
- getItem={[Function]}
128
- getItemCount={[Function]}
129
- horizontal={true}
130
- keyExtractor={[Function]}
131
- onContentSizeChange={[Function]}
132
- onLayout={[Function]}
133
- onMomentumScrollBegin={[Function]}
134
- onMomentumScrollEnd={[Function]}
135
- onScroll={[Function]}
136
- onScrollBeginDrag={[Function]}
137
- onScrollEndDrag={[Function]}
138
- renderItem={[Function]}
139
- scrollEventThrottle={50}
140
- stickyHeaderIndices={Array []}
141
- >
142
- <View>
143
- <View
144
- onFocusCapture={[Function]}
145
- onLayout={[Function]}
146
- style={
147
- Array [
148
- Object {
149
- "flexDirection": "row",
150
- },
151
- null,
152
- ]
153
- }
154
- />
155
- <View
156
- onFocusCapture={[Function]}
157
- onLayout={[Function]}
158
- style={
159
- Array [
160
- Object {
161
- "flexDirection": "row",
162
- },
163
- null,
164
- ]
165
- }
166
- >
167
- <item
168
- title="outer1:inner0"
169
- />
170
- </View>
171
- <View
172
- onFocusCapture={[Function]}
173
- onLayout={[Function]}
174
- style={
175
- Array [
176
- Object {
177
- "flexDirection": "row",
178
- },
179
- null,
180
- ]
181
- }
182
- >
183
- <item
184
- title="outer1:inner1"
185
- />
186
- </View>
187
- <View
188
- onFocusCapture={[Function]}
189
- onLayout={[Function]}
190
- style={
191
- Array [
192
- Object {
193
- "flexDirection": "row",
194
- },
195
- null,
196
- ]
197
- }
198
- />
199
- </View>
200
- </RCTScrollView>
201
- </View>
202
- <View
203
- onFocusCapture={[Function]}
204
- onLayout={[Function]}
205
- style={null}
206
- />
207
- </View>
208
- </RCTScrollView>
209
- `;
210
-
211
- exports[`VirtualizedSectionList handles separators correctly 1`] = `
212
- <RCTScrollView
213
- data={
214
- Array [
215
- Object {
216
- "data": Array [
217
- Object {
218
- "key": "i0",
219
- },
220
- Object {
221
- "key": "i1",
222
- },
223
- Object {
224
- "key": "i2",
225
- },
226
- ],
227
- "title": "s0",
228
- },
229
- ]
230
- }
231
- getItem={[Function]}
232
- getItemCount={[Function]}
233
- keyExtractor={[Function]}
234
- onContentSizeChange={[Function]}
235
- onLayout={[Function]}
236
- onMomentumScrollBegin={[Function]}
237
- onMomentumScrollEnd={[Function]}
238
- onScroll={[Function]}
239
- onScrollBeginDrag={[Function]}
240
- onScrollEndDrag={[Function]}
241
- renderItem={[Function]}
242
- scrollEventThrottle={50}
243
- stickyHeaderIndices={Array []}
244
- >
245
- <View>
246
- <View
247
- onFocusCapture={[Function]}
248
- onLayout={[Function]}
249
- style={null}
250
- />
251
- <View
252
- onFocusCapture={[Function]}
253
- onLayout={[Function]}
254
- style={null}
255
- >
256
- <View>
257
- <item
258
- title="i0"
259
- />
260
- <separator
261
- highlighted={false}
262
- leadingItem={
263
- Object {
264
- "key": "i0",
265
- }
266
- }
267
- section={
268
- Object {
269
- "data": Array [
270
- Object {
271
- "key": "i0",
272
- },
273
- Object {
274
- "key": "i1",
275
- },
276
- Object {
277
- "key": "i2",
278
- },
279
- ],
280
- "title": "s0",
281
- }
282
- }
283
- trailingItem={
284
- Object {
285
- "key": "i1",
286
- }
287
- }
288
- />
289
- </View>
290
- </View>
291
- <View
292
- onFocusCapture={[Function]}
293
- onLayout={[Function]}
294
- style={null}
295
- >
296
- <View>
297
- <item
298
- title="i1"
299
- />
300
- <separator
301
- highlighted={false}
302
- leadingItem={
303
- Object {
304
- "key": "i1",
305
- }
306
- }
307
- section={
308
- Object {
309
- "data": Array [
310
- Object {
311
- "key": "i0",
312
- },
313
- Object {
314
- "key": "i1",
315
- },
316
- Object {
317
- "key": "i2",
318
- },
319
- ],
320
- "title": "s0",
321
- }
322
- }
323
- trailingItem={
324
- Object {
325
- "key": "i2",
326
- }
327
- }
328
- />
329
- </View>
330
- </View>
331
- <View
332
- onFocusCapture={[Function]}
333
- onLayout={[Function]}
334
- style={null}
335
- >
336
- <item
337
- title="i2"
338
- />
339
- </View>
340
- <View
341
- onFocusCapture={[Function]}
342
- onLayout={[Function]}
343
- style={null}
344
- />
345
- </View>
346
- </RCTScrollView>
347
- `;
348
-
349
- exports[`VirtualizedSectionList handles separators correctly 2`] = `
350
- <RCTScrollView
351
- data={
352
- Array [
353
- Object {
354
- "data": Array [
355
- Object {
356
- "key": "i0",
357
- },
358
- Object {
359
- "key": "i1",
360
- },
361
- Object {
362
- "key": "i2",
363
- },
364
- ],
365
- "title": "s0",
366
- },
367
- ]
368
- }
369
- getItem={[Function]}
370
- getItemCount={[Function]}
371
- keyExtractor={[Function]}
372
- onContentSizeChange={[Function]}
373
- onLayout={[Function]}
374
- onMomentumScrollBegin={[Function]}
375
- onMomentumScrollEnd={[Function]}
376
- onScroll={[Function]}
377
- onScrollBeginDrag={[Function]}
378
- onScrollEndDrag={[Function]}
379
- renderItem={[Function]}
380
- scrollEventThrottle={50}
381
- stickyHeaderIndices={Array []}
382
- >
383
- <View>
384
- <View
385
- onFocusCapture={[Function]}
386
- onLayout={[Function]}
387
- style={null}
388
- />
389
- <View
390
- onFocusCapture={[Function]}
391
- onLayout={[Function]}
392
- style={null}
393
- >
394
- <View>
395
- <item
396
- title="i0"
397
- />
398
- <separator
399
- highlighted={true}
400
- leadingItem={
401
- Object {
402
- "key": "i0",
403
- }
404
- }
405
- section={
406
- Object {
407
- "data": Array [
408
- Object {
409
- "key": "i0",
410
- },
411
- Object {
412
- "key": "i1",
413
- },
414
- Object {
415
- "key": "i2",
416
- },
417
- ],
418
- "title": "s0",
419
- }
420
- }
421
- trailingItem={
422
- Object {
423
- "key": "i1",
424
- }
425
- }
426
- />
427
- </View>
428
- </View>
429
- <View
430
- onFocusCapture={[Function]}
431
- onLayout={[Function]}
432
- style={null}
433
- >
434
- <View>
435
- <item
436
- title="i1"
437
- />
438
- <separator
439
- highlighted={true}
440
- leadingItem={
441
- Object {
442
- "key": "i1",
443
- }
444
- }
445
- section={
446
- Object {
447
- "data": Array [
448
- Object {
449
- "key": "i0",
450
- },
451
- Object {
452
- "key": "i1",
453
- },
454
- Object {
455
- "key": "i2",
456
- },
457
- ],
458
- "title": "s0",
459
- }
460
- }
461
- trailingItem={
462
- Object {
463
- "key": "i2",
464
- }
465
- }
466
- />
467
- </View>
468
- </View>
469
- <View
470
- onFocusCapture={[Function]}
471
- onLayout={[Function]}
472
- style={null}
473
- >
474
- <item
475
- title="i2"
476
- />
477
- </View>
478
- <View
479
- onFocusCapture={[Function]}
480
- onLayout={[Function]}
481
- style={null}
482
- />
483
- </View>
484
- </RCTScrollView>
485
- `;
486
-
487
- exports[`VirtualizedSectionList handles separators correctly 3`] = `
488
- <RCTScrollView
489
- data={
490
- Array [
491
- Object {
492
- "data": Array [
493
- Object {
494
- "key": "i0",
495
- },
496
- Object {
497
- "key": "i1",
498
- },
499
- Object {
500
- "key": "i2",
501
- },
502
- ],
503
- "title": "s0",
504
- },
505
- ]
506
- }
507
- getItem={[Function]}
508
- getItemCount={[Function]}
509
- keyExtractor={[Function]}
510
- onContentSizeChange={[Function]}
511
- onLayout={[Function]}
512
- onMomentumScrollBegin={[Function]}
513
- onMomentumScrollEnd={[Function]}
514
- onScroll={[Function]}
515
- onScrollBeginDrag={[Function]}
516
- onScrollEndDrag={[Function]}
517
- renderItem={[Function]}
518
- scrollEventThrottle={50}
519
- stickyHeaderIndices={Array []}
520
- >
521
- <View>
522
- <View
523
- onFocusCapture={[Function]}
524
- onLayout={[Function]}
525
- style={null}
526
- />
527
- <View
528
- onFocusCapture={[Function]}
529
- onLayout={[Function]}
530
- style={null}
531
- >
532
- <View>
533
- <item
534
- title="i0"
535
- />
536
- <separator
537
- highlighted={true}
538
- leadingItem={
539
- Object {
540
- "key": "i0",
541
- }
542
- }
543
- section={
544
- Object {
545
- "data": Array [
546
- Object {
547
- "key": "i0",
548
- },
549
- Object {
550
- "key": "i1",
551
- },
552
- Object {
553
- "key": "i2",
554
- },
555
- ],
556
- "title": "s0",
557
- }
558
- }
559
- trailingItem={
560
- Object {
561
- "key": "i1",
562
- }
563
- }
564
- />
565
- </View>
566
- </View>
567
- <View
568
- onFocusCapture={[Function]}
569
- onLayout={[Function]}
570
- style={null}
571
- >
572
- <View>
573
- <item
574
- title="i1"
575
- />
576
- <separator
577
- highlighted={true}
578
- leadingItem={
579
- Object {
580
- "key": "i1",
581
- }
582
- }
583
- press={true}
584
- section={
585
- Object {
586
- "data": Array [
587
- Object {
588
- "key": "i0",
589
- },
590
- Object {
591
- "key": "i1",
592
- },
593
- Object {
594
- "key": "i2",
595
- },
596
- ],
597
- "title": "s0",
598
- }
599
- }
600
- trailingItem={
601
- Object {
602
- "key": "i2",
603
- }
604
- }
605
- />
606
- </View>
607
- </View>
608
- <View
609
- onFocusCapture={[Function]}
610
- onLayout={[Function]}
611
- style={null}
612
- >
613
- <item
614
- title="i2"
615
- />
616
- </View>
617
- <View
618
- onFocusCapture={[Function]}
619
- onLayout={[Function]}
620
- style={null}
621
- />
622
- </View>
623
- </RCTScrollView>
624
- `;
625
-
626
- exports[`VirtualizedSectionList handles separators correctly 4`] = `
627
- <RCTScrollView
628
- data={
629
- Array [
630
- Object {
631
- "data": Array [
632
- Object {
633
- "key": "i0",
634
- },
635
- Object {
636
- "key": "i1",
637
- },
638
- Object {
639
- "key": "i2",
640
- },
641
- ],
642
- "title": "s0",
643
- },
644
- ]
645
- }
646
- getItem={[Function]}
647
- getItemCount={[Function]}
648
- keyExtractor={[Function]}
649
- onContentSizeChange={[Function]}
650
- onLayout={[Function]}
651
- onMomentumScrollBegin={[Function]}
652
- onMomentumScrollEnd={[Function]}
653
- onScroll={[Function]}
654
- onScrollBeginDrag={[Function]}
655
- onScrollEndDrag={[Function]}
656
- renderItem={[Function]}
657
- scrollEventThrottle={50}
658
- stickyHeaderIndices={Array []}
659
- >
660
- <View>
661
- <View
662
- onFocusCapture={[Function]}
663
- onLayout={[Function]}
664
- style={null}
665
- />
666
- <View
667
- onFocusCapture={[Function]}
668
- onLayout={[Function]}
669
- style={null}
670
- >
671
- <View>
672
- <item
673
- title="i0"
674
- />
675
- <separator
676
- highlighted={false}
677
- leadingItem={
678
- Object {
679
- "key": "i0",
680
- }
681
- }
682
- section={
683
- Object {
684
- "data": Array [
685
- Object {
686
- "key": "i0",
687
- },
688
- Object {
689
- "key": "i1",
690
- },
691
- Object {
692
- "key": "i2",
693
- },
694
- ],
695
- "title": "s0",
696
- }
697
- }
698
- trailingItem={
699
- Object {
700
- "key": "i1",
701
- }
702
- }
703
- />
704
- </View>
705
- </View>
706
- <View
707
- onFocusCapture={[Function]}
708
- onLayout={[Function]}
709
- style={null}
710
- >
711
- <View>
712
- <item
713
- title="i1"
714
- />
715
- <separator
716
- highlighted={false}
717
- leadingItem={
718
- Object {
719
- "key": "i1",
720
- }
721
- }
722
- press={true}
723
- section={
724
- Object {
725
- "data": Array [
726
- Object {
727
- "key": "i0",
728
- },
729
- Object {
730
- "key": "i1",
731
- },
732
- Object {
733
- "key": "i2",
734
- },
735
- ],
736
- "title": "s0",
737
- }
738
- }
739
- trailingItem={
740
- Object {
741
- "key": "i2",
742
- }
743
- }
744
- />
745
- </View>
746
- </View>
747
- <View
748
- onFocusCapture={[Function]}
749
- onLayout={[Function]}
750
- style={null}
751
- >
752
- <item
753
- title="i2"
754
- />
755
- </View>
756
- <View
757
- onFocusCapture={[Function]}
758
- onLayout={[Function]}
759
- style={null}
760
- />
761
- </View>
762
- </RCTScrollView>
763
- `;
764
-
765
- exports[`VirtualizedSectionList renders all the bells and whistles 1`] = `
766
- <RCTScrollView
767
- ListEmptyComponent={[Function]}
768
- ListFooterComponent={[Function]}
769
- ListHeaderComponent={[Function]}
770
- data={
771
- Array [
772
- Object {
773
- "data": Array [
774
- Object {
775
- "id": "0",
776
- },
777
- Object {
778
- "id": "1",
779
- },
780
- Object {
781
- "id": "2",
782
- },
783
- Object {
784
- "id": "3",
785
- },
786
- Object {
787
- "id": "4",
788
- },
789
- ],
790
- "title": "s1",
791
- },
792
- ]
793
- }
794
- getItem={[Function]}
795
- getItemCount={[Function]}
796
- getItemLayout={[Function]}
797
- invertStickyHeaders={true}
798
- inverted={true}
799
- keyExtractor={[Function]}
800
- onContentSizeChange={[Function]}
801
- onLayout={[Function]}
802
- onMomentumScrollBegin={[Function]}
803
- onMomentumScrollEnd={[Function]}
804
- onRefresh={[MockFunction]}
805
- onScroll={[Function]}
806
- onScrollBeginDrag={[Function]}
807
- onScrollEndDrag={[Function]}
808
- refreshControl={
809
- <RefreshControlMock
810
- onRefresh={[MockFunction]}
811
- refreshing={false}
812
- />
813
- }
814
- refreshing={false}
815
- renderItem={[Function]}
816
- scrollEventThrottle={50}
817
- stickyHeaderIndices={Array []}
818
- style={
819
- Array [
820
- Object {
821
- "transform": Array [
822
- Object {
823
- "scaleY": -1,
824
- },
825
- ],
826
- },
827
- undefined,
828
- ]
829
- }
830
- >
831
- <RCTRefreshControl />
832
- <View>
833
- <View
834
- onLayout={[Function]}
835
- style={
836
- Object {
837
- "transform": Array [
838
- Object {
839
- "scaleY": -1,
840
- },
841
- ],
842
- }
843
- }
844
- >
845
- <header />
846
- </View>
847
- <View
848
- onFocusCapture={[Function]}
849
- style={
850
- Array [
851
- Object {
852
- "flexDirection": "column-reverse",
853
- },
854
- Object {
855
- "transform": Array [
856
- Object {
857
- "scaleY": -1,
858
- },
859
- ],
860
- },
861
- ]
862
- }
863
- />
864
- <View
865
- onFocusCapture={[Function]}
866
- style={
867
- Array [
868
- Object {
869
- "flexDirection": "column-reverse",
870
- },
871
- Object {
872
- "transform": Array [
873
- Object {
874
- "scaleY": -1,
875
- },
876
- ],
877
- },
878
- ]
879
- }
880
- >
881
- <View>
882
- <separator />
883
- <item
884
- value="0"
885
- />
886
- </View>
887
- </View>
888
- <View
889
- onFocusCapture={[Function]}
890
- style={
891
- Array [
892
- Object {
893
- "flexDirection": "column-reverse",
894
- },
895
- Object {
896
- "transform": Array [
897
- Object {
898
- "scaleY": -1,
899
- },
900
- ],
901
- },
902
- ]
903
- }
904
- >
905
- <View>
906
- <separator />
907
- <item
908
- value="1"
909
- />
910
- </View>
911
- </View>
912
- <View
913
- onFocusCapture={[Function]}
914
- style={
915
- Array [
916
- Object {
917
- "flexDirection": "column-reverse",
918
- },
919
- Object {
920
- "transform": Array [
921
- Object {
922
- "scaleY": -1,
923
- },
924
- ],
925
- },
926
- ]
927
- }
928
- >
929
- <View>
930
- <separator />
931
- <item
932
- value="2"
933
- />
934
- </View>
935
- </View>
936
- <View
937
- onFocusCapture={[Function]}
938
- style={
939
- Array [
940
- Object {
941
- "flexDirection": "column-reverse",
942
- },
943
- Object {
944
- "transform": Array [
945
- Object {
946
- "scaleY": -1,
947
- },
948
- ],
949
- },
950
- ]
951
- }
952
- >
953
- <View>
954
- <separator />
955
- <item
956
- value="3"
957
- />
958
- </View>
959
- </View>
960
- <View
961
- onFocusCapture={[Function]}
962
- style={
963
- Array [
964
- Object {
965
- "flexDirection": "column-reverse",
966
- },
967
- Object {
968
- "transform": Array [
969
- Object {
970
- "scaleY": -1,
971
- },
972
- ],
973
- },
974
- ]
975
- }
976
- >
977
- <item
978
- value="4"
979
- />
980
- </View>
981
- <View
982
- onFocusCapture={[Function]}
983
- style={
984
- Array [
985
- Object {
986
- "flexDirection": "column-reverse",
987
- },
988
- Object {
989
- "transform": Array [
990
- Object {
991
- "scaleY": -1,
992
- },
993
- ],
994
- },
995
- ]
996
- }
997
- />
998
- <View
999
- onLayout={[Function]}
1000
- style={
1001
- Object {
1002
- "transform": Array [
1003
- Object {
1004
- "scaleY": -1,
1005
- },
1006
- ],
1007
- }
1008
- }
1009
- >
1010
- <footer />
1011
- </View>
1012
- </View>
1013
- </RCTScrollView>
1014
- `;
1015
-
1016
- exports[`VirtualizedSectionList renders empty list 1`] = `
1017
- <RCTScrollView
1018
- data={Array []}
1019
- getItem={[Function]}
1020
- getItemCount={[Function]}
1021
- keyExtractor={[Function]}
1022
- onContentSizeChange={[Function]}
1023
- onLayout={[Function]}
1024
- onMomentumScrollBegin={[Function]}
1025
- onMomentumScrollEnd={[Function]}
1026
- onScroll={[Function]}
1027
- onScrollBeginDrag={[Function]}
1028
- onScrollEndDrag={[Function]}
1029
- renderItem={[Function]}
1030
- scrollEventThrottle={50}
1031
- stickyHeaderIndices={Array []}
1032
- >
1033
- <View />
1034
- </RCTScrollView>
1035
- `;
1036
-
1037
- exports[`VirtualizedSectionList renders empty list with empty component 1`] = `
1038
- <RCTScrollView
1039
- ListEmptyComponent={[Function]}
1040
- ListFooterComponent={[Function]}
1041
- ListHeaderComponent={[Function]}
1042
- data={Array []}
1043
- getItem={[Function]}
1044
- getItemCount={[Function]}
1045
- keyExtractor={[Function]}
1046
- onContentSizeChange={[Function]}
1047
- onLayout={[Function]}
1048
- onMomentumScrollBegin={[Function]}
1049
- onMomentumScrollEnd={[Function]}
1050
- onScroll={[Function]}
1051
- onScrollBeginDrag={[Function]}
1052
- onScrollEndDrag={[Function]}
1053
- renderItem={[Function]}
1054
- scrollEventThrottle={50}
1055
- stickyHeaderIndices={Array []}
1056
- >
1057
- <View>
1058
- <View
1059
- onLayout={[Function]}
1060
- >
1061
- <header />
1062
- </View>
1063
- <empty />
1064
- <View
1065
- onLayout={[Function]}
1066
- >
1067
- <footer />
1068
- </View>
1069
- </View>
1070
- </RCTScrollView>
1071
- `;
1072
-
1073
- exports[`VirtualizedSectionList renders list with empty component 1`] = `
1074
- <RCTScrollView
1075
- ListEmptyComponent={[Function]}
1076
- data={
1077
- Array [
1078
- Object {
1079
- "data": Array [
1080
- Object {
1081
- "key": "hello",
1082
- },
1083
- ],
1084
- "title": "s1",
1085
- },
1086
- ]
1087
- }
1088
- getItem={[Function]}
1089
- getItemCount={[Function]}
1090
- keyExtractor={[Function]}
1091
- onContentSizeChange={[Function]}
1092
- onLayout={[Function]}
1093
- onMomentumScrollBegin={[Function]}
1094
- onMomentumScrollEnd={[Function]}
1095
- onScroll={[Function]}
1096
- onScrollBeginDrag={[Function]}
1097
- onScrollEndDrag={[Function]}
1098
- renderItem={[Function]}
1099
- scrollEventThrottle={50}
1100
- stickyHeaderIndices={Array []}
1101
- >
1102
- <View>
1103
- <View
1104
- onFocusCapture={[Function]}
1105
- onLayout={[Function]}
1106
- style={null}
1107
- />
1108
- <View
1109
- onFocusCapture={[Function]}
1110
- onLayout={[Function]}
1111
- style={null}
1112
- >
1113
- <item
1114
- value="hello"
1115
- />
1116
- </View>
1117
- <View
1118
- onFocusCapture={[Function]}
1119
- onLayout={[Function]}
1120
- style={null}
1121
- />
1122
- </View>
1123
- </RCTScrollView>
1124
- `;
1125
-
1126
- exports[`VirtualizedSectionList renders simple list 1`] = `
1127
- <RCTScrollView
1128
- data={
1129
- Array [
1130
- Object {
1131
- "data": Array [
1132
- Object {
1133
- "key": "i1",
1134
- },
1135
- Object {
1136
- "key": "i2",
1137
- },
1138
- Object {
1139
- "key": "i3",
1140
- },
1141
- ],
1142
- "title": "s1",
1143
- },
1144
- ]
1145
- }
1146
- getItem={[Function]}
1147
- getItemCount={[Function]}
1148
- keyExtractor={[Function]}
1149
- onContentSizeChange={[Function]}
1150
- onLayout={[Function]}
1151
- onMomentumScrollBegin={[Function]}
1152
- onMomentumScrollEnd={[Function]}
1153
- onScroll={[Function]}
1154
- onScrollBeginDrag={[Function]}
1155
- onScrollEndDrag={[Function]}
1156
- renderItem={[Function]}
1157
- scrollEventThrottle={50}
1158
- stickyHeaderIndices={Array []}
1159
- >
1160
- <View>
1161
- <View
1162
- onFocusCapture={[Function]}
1163
- onLayout={[Function]}
1164
- style={null}
1165
- />
1166
- <View
1167
- onFocusCapture={[Function]}
1168
- onLayout={[Function]}
1169
- style={null}
1170
- >
1171
- <item
1172
- value="i1"
1173
- />
1174
- </View>
1175
- <View
1176
- onFocusCapture={[Function]}
1177
- onLayout={[Function]}
1178
- style={null}
1179
- >
1180
- <item
1181
- value="i2"
1182
- />
1183
- </View>
1184
- <View
1185
- onFocusCapture={[Function]}
1186
- onLayout={[Function]}
1187
- style={null}
1188
- >
1189
- <item
1190
- value="i3"
1191
- />
1192
- </View>
1193
- <View
1194
- onFocusCapture={[Function]}
1195
- onLayout={[Function]}
1196
- style={null}
1197
- />
1198
- </View>
1199
- </RCTScrollView>
1200
- `;