Skip to content

Commit 56702d9

Browse files
committedApr 26, 2017
💚 Add 'FillRateHelper' to download-flatlist; commit snapshots
1 parent 07131b6 commit 56702d9

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed
 

‎bin/download-flatlist.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Based on https://gist.github.com/cooperka/c5dd3ab11f588044d4d6ba22d52c4ab0
44
# Downloads FlatList and its related dependencies directly into your node_modules.
55

6-
FILES=('FlatList' 'MetroListView' 'SectionList' 'VirtualizedList' 'VirtualizedSectionList' 'ViewabilityHelper' 'VirtualizeUtils')
6+
FILES=('FlatList' 'MetroListView' 'SectionList' 'VirtualizedList' 'VirtualizedSectionList' 'ViewabilityHelper' 'VirtualizeUtils' 'FillRateHelper')
77
OLD_DIR_1='node_modules/react-native/Libraries/Experimental'
88
OLD_DIR_2='node_modules/react-native/Libraries/CustomComponents/Lists'
99
NEW_DIR='node_modules/react-native/Libraries/Lists'

‎src/__tests__/__snapshots__/EmptyListView.test.js.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports[`EmptyListView renders with custom renderRow 1`] = `
2424
onLayout={[Function]}
2525
onScroll={[Function]}
2626
pageSize={1}
27-
removeClippedSubviews={true}
27+
removeClippedSubviews={false}
2828
renderRow={[Function]}
2929
scrollEventThrottle={50}
3030
scrollRenderAheadDistance={1000}
@@ -68,7 +68,7 @@ exports[`EmptyListView renders with custom text 1`] = `
6868
onLayout={[Function]}
6969
onScroll={[Function]}
7070
pageSize={1}
71-
removeClippedSubviews={true}
71+
removeClippedSubviews={false}
7272
renderRow={[Function]}
7373
scrollEventThrottle={50}
7474
scrollRenderAheadDistance={1000}
@@ -127,7 +127,7 @@ exports[`EmptyListView renders with default text 1`] = `
127127
onLayout={[Function]}
128128
onScroll={[Function]}
129129
pageSize={1}
130-
removeClippedSubviews={true}
130+
removeClippedSubviews={false}
131131
renderRow={[Function]}
132132
scrollEventThrottle={50}
133133
scrollRenderAheadDistance={1000}

‎src/__tests__/__snapshots__/ImmutableListView.test.js.snap

+12-12
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ exports[`ImmutableListView renders Map: List rows, with section headers 1`] = `
3434
onLayout={[Function]}
3535
onScroll={[Function]}
3636
pageSize={1}
37-
removeClippedSubviews={true}
37+
removeClippedSubviews={false}
3838
renderRow={[Function]}
3939
renderSectionHeader={[Function]}
4040
scrollEventThrottle={50}
@@ -156,7 +156,7 @@ exports[`ImmutableListView renders Map: List rows, without section headers 1`] =
156156
onLayout={[Function]}
157157
onScroll={[Function]}
158158
pageSize={1}
159-
removeClippedSubviews={true}
159+
removeClippedSubviews={false}
160160
renderRow={[Function]}
161161
scrollEventThrottle={50}
162162
scrollRenderAheadDistance={1000}
@@ -224,7 +224,7 @@ exports[`ImmutableListView renders Map: Map rows, with section headers 1`] = `
224224
onLayout={[Function]}
225225
onScroll={[Function]}
226226
pageSize={1}
227-
removeClippedSubviews={true}
227+
removeClippedSubviews={false}
228228
renderRow={[Function]}
229229
renderSectionHeader={[Function]}
230230
scrollEventThrottle={50}
@@ -300,7 +300,7 @@ exports[`ImmutableListView renders Map: Map rows, without section headers 1`] =
300300
onLayout={[Function]}
301301
onScroll={[Function]}
302302
pageSize={1}
303-
removeClippedSubviews={true}
303+
removeClippedSubviews={false}
304304
renderRow={[Function]}
305305
scrollEventThrottle={50}
306306
scrollRenderAheadDistance={1000}
@@ -352,7 +352,7 @@ exports[`ImmutableListView renders basic List 1`] = `
352352
onLayout={[Function]}
353353
onScroll={[Function]}
354354
pageSize={1}
355-
removeClippedSubviews={true}
355+
removeClippedSubviews={false}
356356
renderRow={[Function]}
357357
scrollEventThrottle={50}
358358
scrollRenderAheadDistance={1000}
@@ -411,7 +411,7 @@ exports[`ImmutableListView renders basic Range 1`] = `
411411
onLayout={[Function]}
412412
onScroll={[Function]}
413413
pageSize={1}
414-
removeClippedSubviews={true}
414+
removeClippedSubviews={false}
415415
renderRow={[Function]}
416416
scrollEventThrottle={50}
417417
scrollRenderAheadDistance={1000}
@@ -470,7 +470,7 @@ exports[`ImmutableListView renders basic Set 1`] = `
470470
onLayout={[Function]}
471471
onScroll={[Function]}
472472
pageSize={1}
473-
removeClippedSubviews={true}
473+
removeClippedSubviews={false}
474474
renderRow={[Function]}
475475
scrollEventThrottle={50}
476476
scrollRenderAheadDistance={1000}
@@ -534,7 +534,7 @@ exports[`ImmutableListView renders nested List 1`] = `
534534
onLayout={[Function]}
535535
onScroll={[Function]}
536536
pageSize={1}
537-
removeClippedSubviews={true}
537+
removeClippedSubviews={false}
538538
renderRow={[Function]}
539539
scrollEventThrottle={50}
540540
scrollRenderAheadDistance={1000}
@@ -580,7 +580,7 @@ exports[`ImmutableListView renders with empty data 1`] = `
580580
onLayout={[Function]}
581581
onScroll={[Function]}
582582
pageSize={1}
583-
removeClippedSubviews={true}
583+
removeClippedSubviews={false}
584584
renderRow={[Function]}
585585
scrollEventThrottle={50}
586586
scrollRenderAheadDistance={1000}
@@ -617,7 +617,7 @@ exports[`ImmutableListView with delayed rendering renders basic List after inter
617617
onLayout={[Function]}
618618
onScroll={[Function]}
619619
pageSize={1}
620-
removeClippedSubviews={true}
620+
removeClippedSubviews={false}
621621
renderRow={[Function]}
622622
rowsDuringInteraction={1}
623623
scrollEventThrottle={50}
@@ -677,7 +677,7 @@ exports[`ImmutableListView with delayed rendering renders basic List during inte
677677
onLayout={[Function]}
678678
onScroll={[Function]}
679679
pageSize={1}
680-
removeClippedSubviews={true}
680+
removeClippedSubviews={false}
681681
renderRow={[Function]}
682682
rowsDuringInteraction={1}
683683
scrollEventThrottle={50}
@@ -733,7 +733,7 @@ exports[`ImmutableListView with renderEmpty renders normally when there are some
733733
onLayout={[Function]}
734734
onScroll={[Function]}
735735
pageSize={1}
736-
removeClippedSubviews={true}
736+
removeClippedSubviews={false}
737737
renderEmpty={[Function]}
738738
renderRow={[Function]}
739739
scrollEventThrottle={50}

‎src/__tests__/__snapshots__/ImmutableVirtualizedList.test.js.snap

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ exports[`ImmutableVirtualizedList renders basic List 1`] = `
2424
keyExtractor={[Function]}
2525
maxToRenderPerBatch={10}
2626
onContentSizeChange={[Function]}
27-
onEndReached={[Function]}
2827
onEndReachedThreshold={2}
2928
onLayout={[Function]}
29+
onMomentumScrollEnd={[Function]}
3030
onScroll={[Function]}
3131
onScrollBeginDrag={[Function]}
32-
removeClippedSubviews={true}
32+
onScrollEndDrag={[Function]}
3333
renderItem={[Function]}
3434
renderScrollComponent={[Function]}
3535
scrollEventThrottle={50}
@@ -99,12 +99,12 @@ exports[`ImmutableVirtualizedList renders basic Range 1`] = `
9999
keyExtractor={[Function]}
100100
maxToRenderPerBatch={10}
101101
onContentSizeChange={[Function]}
102-
onEndReached={[Function]}
103102
onEndReachedThreshold={2}
104103
onLayout={[Function]}
104+
onMomentumScrollEnd={[Function]}
105105
onScroll={[Function]}
106106
onScrollBeginDrag={[Function]}
107-
removeClippedSubviews={true}
107+
onScrollEndDrag={[Function]}
108108
renderItem={[Function]}
109109
renderScrollComponent={[Function]}
110110
scrollEventThrottle={50}
@@ -184,12 +184,12 @@ exports[`ImmutableVirtualizedList renders nested List 1`] = `
184184
keyExtractor={[Function]}
185185
maxToRenderPerBatch={10}
186186
onContentSizeChange={[Function]}
187-
onEndReached={[Function]}
188187
onEndReachedThreshold={2}
189188
onLayout={[Function]}
189+
onMomentumScrollEnd={[Function]}
190190
onScroll={[Function]}
191191
onScrollBeginDrag={[Function]}
192-
removeClippedSubviews={true}
192+
onScrollEndDrag={[Function]}
193193
renderItem={[Function]}
194194
renderScrollComponent={[Function]}
195195
scrollEventThrottle={50}
@@ -236,12 +236,12 @@ exports[`ImmutableVirtualizedList renders with empty data 1`] = `
236236
keyExtractor={[Function]}
237237
maxToRenderPerBatch={10}
238238
onContentSizeChange={[Function]}
239-
onEndReached={[Function]}
240239
onEndReachedThreshold={2}
241240
onLayout={[Function]}
241+
onMomentumScrollEnd={[Function]}
242242
onScroll={[Function]}
243243
onScrollBeginDrag={[Function]}
244-
removeClippedSubviews={true}
244+
onScrollEndDrag={[Function]}
245245
renderItem={[Function]}
246246
renderScrollComponent={[Function]}
247247
scrollEventThrottle={50}

0 commit comments

Comments
 (0)