|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
| 3 | +exports[`FlatList ignores invalid data 1`] = ` |
| 4 | +<RCTScrollView |
| 5 | + alwaysBounceVertical={true} |
| 6 | + data={123456} |
| 7 | + getItem={[Function]} |
| 8 | + getItemCount={[Function]} |
| 9 | + keyExtractor={[Function]} |
| 10 | + onContentSizeChange={null} |
| 11 | + onLayout={[Function]} |
| 12 | + onMomentumScrollBegin={[Function]} |
| 13 | + onMomentumScrollEnd={[Function]} |
| 14 | + onResponderGrant={[Function]} |
| 15 | + onResponderReject={[Function]} |
| 16 | + onResponderRelease={[Function]} |
| 17 | + onResponderTerminationRequest={[Function]} |
| 18 | + onScroll={[Function]} |
| 19 | + onScrollBeginDrag={[Function]} |
| 20 | + onScrollEndDrag={[Function]} |
| 21 | + onScrollShouldSetResponder={[Function]} |
| 22 | + onStartShouldSetResponder={[Function]} |
| 23 | + onStartShouldSetResponderCapture={[Function]} |
| 24 | + onTouchCancel={[Function]} |
| 25 | + onTouchEnd={[Function]} |
| 26 | + onTouchMove={[Function]} |
| 27 | + onTouchStart={[Function]} |
| 28 | + pagingEnabled={false} |
| 29 | + removeClippedSubviews={false} |
| 30 | + renderItem={[Function]} |
| 31 | + scrollEventThrottle={50} |
| 32 | + scrollViewRef={[Function]} |
| 33 | + sendMomentumEvents={true} |
| 34 | + snapToEnd={true} |
| 35 | + snapToStart={true} |
| 36 | + stickyHeaderIndices={Array []} |
| 37 | + style={ |
| 38 | + Object { |
| 39 | + "flexDirection": "column", |
| 40 | + "flexGrow": 1, |
| 41 | + "flexShrink": 1, |
| 42 | + "overflow": "scroll", |
| 43 | + } |
| 44 | + } |
| 45 | + viewabilityConfigCallbackPairs={Array []} |
| 46 | +> |
| 47 | + <RCTScrollContentView |
| 48 | + collapsable={false} |
| 49 | + onLayout={[Function]} |
| 50 | + removeClippedSubviews={false} |
| 51 | + style={ |
| 52 | + Array [ |
| 53 | + false, |
| 54 | + undefined, |
| 55 | + ] |
| 56 | + } |
| 57 | + /> |
| 58 | +</RCTScrollView> |
| 59 | +`; |
| 60 | + |
3 | 61 | exports[`FlatList renders all the bells and whistles 1`] = ` |
4 | 62 | <RCTScrollView |
5 | 63 | ItemSeparatorComponent={[Function]} |
@@ -122,6 +180,105 @@ exports[`FlatList renders all the bells and whistles 1`] = ` |
122 | 180 | </RCTScrollView> |
123 | 181 | `; |
124 | 182 |
|
| 183 | +exports[`FlatList renders array-like data 1`] = ` |
| 184 | +<RCTScrollView |
| 185 | + alwaysBounceVertical={true} |
| 186 | + data={ |
| 187 | + Object { |
| 188 | + "0": Object { |
| 189 | + "key": "i1", |
| 190 | + }, |
| 191 | + "1": Object { |
| 192 | + "key": "i2", |
| 193 | + }, |
| 194 | + "2": Object { |
| 195 | + "key": "i3", |
| 196 | + }, |
| 197 | + "length": 3, |
| 198 | + } |
| 199 | + } |
| 200 | + getItem={[Function]} |
| 201 | + getItemCount={[Function]} |
| 202 | + keyExtractor={[Function]} |
| 203 | + onContentSizeChange={null} |
| 204 | + onLayout={[Function]} |
| 205 | + onMomentumScrollBegin={[Function]} |
| 206 | + onMomentumScrollEnd={[Function]} |
| 207 | + onResponderGrant={[Function]} |
| 208 | + onResponderReject={[Function]} |
| 209 | + onResponderRelease={[Function]} |
| 210 | + onResponderTerminationRequest={[Function]} |
| 211 | + onScroll={[Function]} |
| 212 | + onScrollBeginDrag={[Function]} |
| 213 | + onScrollEndDrag={[Function]} |
| 214 | + onScrollShouldSetResponder={[Function]} |
| 215 | + onStartShouldSetResponder={[Function]} |
| 216 | + onStartShouldSetResponderCapture={[Function]} |
| 217 | + onTouchCancel={[Function]} |
| 218 | + onTouchEnd={[Function]} |
| 219 | + onTouchMove={[Function]} |
| 220 | + onTouchStart={[Function]} |
| 221 | + pagingEnabled={false} |
| 222 | + removeClippedSubviews={false} |
| 223 | + renderItem={[Function]} |
| 224 | + scrollEventThrottle={50} |
| 225 | + scrollViewRef={[Function]} |
| 226 | + sendMomentumEvents={true} |
| 227 | + snapToEnd={true} |
| 228 | + snapToStart={true} |
| 229 | + stickyHeaderIndices={Array []} |
| 230 | + style={ |
| 231 | + Object { |
| 232 | + "flexDirection": "column", |
| 233 | + "flexGrow": 1, |
| 234 | + "flexShrink": 1, |
| 235 | + "overflow": "scroll", |
| 236 | + } |
| 237 | + } |
| 238 | + viewabilityConfigCallbackPairs={Array []} |
| 239 | +> |
| 240 | + <RCTScrollContentView |
| 241 | + collapsable={false} |
| 242 | + onLayout={[Function]} |
| 243 | + removeClippedSubviews={false} |
| 244 | + style={ |
| 245 | + Array [ |
| 246 | + false, |
| 247 | + undefined, |
| 248 | + ] |
| 249 | + } |
| 250 | + > |
| 251 | + <View |
| 252 | + onFocusCapture={[Function]} |
| 253 | + onLayout={[Function]} |
| 254 | + style={null} |
| 255 | + > |
| 256 | + <item |
| 257 | + value="i1" |
| 258 | + /> |
| 259 | + </View> |
| 260 | + <View |
| 261 | + onFocusCapture={[Function]} |
| 262 | + onLayout={[Function]} |
| 263 | + style={null} |
| 264 | + > |
| 265 | + <item |
| 266 | + value="i2" |
| 267 | + /> |
| 268 | + </View> |
| 269 | + <View |
| 270 | + onFocusCapture={[Function]} |
| 271 | + onLayout={[Function]} |
| 272 | + style={null} |
| 273 | + > |
| 274 | + <item |
| 275 | + value="i3" |
| 276 | + /> |
| 277 | + </View> |
| 278 | + </RCTScrollContentView> |
| 279 | +</RCTScrollView> |
| 280 | +`; |
| 281 | + |
125 | 282 | exports[`FlatList renders empty list 1`] = ` |
126 | 283 | <RCTScrollView |
127 | 284 | data={Array []} |
|
0 commit comments