|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
| 3 | +exports[`NestedListView renders empty data 1`] = ` |
| 4 | +<RCTScrollView |
| 5 | + data={ |
| 6 | + Array [ |
| 7 | + Object { |
| 8 | + "_internalId": "1", |
| 9 | + }, |
| 10 | + Object { |
| 11 | + "_internalId": "1", |
| 12 | + }, |
| 13 | + Object { |
| 14 | + "_internalId": "1", |
| 15 | + }, |
| 16 | + ] |
| 17 | + } |
| 18 | + disableVirtualization={false} |
| 19 | + getItem={[Function]} |
| 20 | + getItemCount={[Function]} |
| 21 | + horizontal={false} |
| 22 | + initialNumToRender={10} |
| 23 | + keyExtractor={[Function]} |
| 24 | + maxToRenderPerBatch={10} |
| 25 | + numColumns={1} |
| 26 | + onContentSizeChange={[Function]} |
| 27 | + onEndReachedThreshold={2} |
| 28 | + onLayout={[Function]} |
| 29 | + onMomentumScrollEnd={[Function]} |
| 30 | + onScroll={[Function]} |
| 31 | + onScrollBeginDrag={[Function]} |
| 32 | + onScrollEndDrag={[Function]} |
| 33 | + removeClippedSubviews={false} |
| 34 | + renderItem={[Function]} |
| 35 | + scrollEventThrottle={50} |
| 36 | + stickyHeaderIndices={Array []} |
| 37 | + updateCellsBatchingPeriod={50} |
| 38 | + viewabilityConfigCallbackPairs={Array []} |
| 39 | + windowSize={21} |
| 40 | +> |
| 41 | + <View> |
| 42 | + <View |
| 43 | + onLayout={[Function]} |
| 44 | + style={null} |
| 45 | + > |
| 46 | + <View |
| 47 | + accessible={true} |
| 48 | + clickable={true} |
| 49 | + onClick={[Function]} |
| 50 | + onResponderGrant={[Function]} |
| 51 | + onResponderMove={[Function]} |
| 52 | + onResponderRelease={[Function]} |
| 53 | + onResponderTerminate={[Function]} |
| 54 | + onResponderTerminationRequest={[Function]} |
| 55 | + onStartShouldSetResponder={[Function]} |
| 56 | + > |
| 57 | + <View> |
| 58 | + <Text /> |
| 59 | + </View> |
| 60 | + </View> |
| 61 | + </View> |
| 62 | + <View |
| 63 | + onLayout={[Function]} |
| 64 | + style={null} |
| 65 | + > |
| 66 | + <View |
| 67 | + accessible={true} |
| 68 | + clickable={true} |
| 69 | + onClick={[Function]} |
| 70 | + onResponderGrant={[Function]} |
| 71 | + onResponderMove={[Function]} |
| 72 | + onResponderRelease={[Function]} |
| 73 | + onResponderTerminate={[Function]} |
| 74 | + onResponderTerminationRequest={[Function]} |
| 75 | + onStartShouldSetResponder={[Function]} |
| 76 | + > |
| 77 | + <View> |
| 78 | + <Text /> |
| 79 | + </View> |
| 80 | + </View> |
| 81 | + </View> |
| 82 | + <View |
| 83 | + onLayout={[Function]} |
| 84 | + style={null} |
| 85 | + > |
| 86 | + <View |
| 87 | + accessible={true} |
| 88 | + clickable={true} |
| 89 | + onClick={[Function]} |
| 90 | + onResponderGrant={[Function]} |
| 91 | + onResponderMove={[Function]} |
| 92 | + onResponderRelease={[Function]} |
| 93 | + onResponderTerminate={[Function]} |
| 94 | + onResponderTerminationRequest={[Function]} |
| 95 | + onStartShouldSetResponder={[Function]} |
| 96 | + > |
| 97 | + <View> |
| 98 | + <Text /> |
| 99 | + </View> |
| 100 | + </View> |
| 101 | + </View> |
| 102 | + </View> |
| 103 | +</RCTScrollView> |
| 104 | +`; |
| 105 | + |
3 | 106 | exports[`NestedListView renders with NestedRow 1`] = ` |
4 | 107 | <RCTScrollView |
5 | 108 | data={ |
@@ -815,3 +918,61 @@ exports[`NestedListView renders with simple array 1`] = ` |
815 | 918 | </View> |
816 | 919 | </RCTScrollView> |
817 | 920 | `; |
| 921 | + |
| 922 | +exports[`NestedListView renders without data 1`] = ` |
| 923 | +<View |
| 924 | + style={ |
| 925 | + Object { |
| 926 | + "alignItems": "center", |
| 927 | + "backgroundColor": "rgb(237, 57, 40)", |
| 928 | + "borderColor": "rgb(84, 85, 86)", |
| 929 | + "borderWidth": 1, |
| 930 | + "height": 60, |
| 931 | + "justifyContent": "center", |
| 932 | + } |
| 933 | + } |
| 934 | +> |
| 935 | + <Text |
| 936 | + style={ |
| 937 | + Object { |
| 938 | + "color": "rgb(255, 255, 255)", |
| 939 | + "fontSize": 17, |
| 940 | + "fontWeight": "bold", |
| 941 | + } |
| 942 | + } |
| 943 | + > |
| 944 | + prop |
| 945 | + data |
| 946 | + has not been passed |
| 947 | + </Text> |
| 948 | +</View> |
| 949 | +`; |
| 950 | + |
| 951 | +exports[`NestedListView renders without renderNode 1`] = ` |
| 952 | +<View |
| 953 | + style={ |
| 954 | + Object { |
| 955 | + "alignItems": "center", |
| 956 | + "backgroundColor": "rgb(237, 57, 40)", |
| 957 | + "borderColor": "rgb(84, 85, 86)", |
| 958 | + "borderWidth": 1, |
| 959 | + "height": 60, |
| 960 | + "justifyContent": "center", |
| 961 | + } |
| 962 | + } |
| 963 | +> |
| 964 | + <Text |
| 965 | + style={ |
| 966 | + Object { |
| 967 | + "color": "rgb(255, 255, 255)", |
| 968 | + "fontSize": 17, |
| 969 | + "fontWeight": "bold", |
| 970 | + } |
| 971 | + } |
| 972 | + > |
| 973 | + prop |
| 974 | + renderNode |
| 975 | + has not been passed |
| 976 | + </Text> |
| 977 | +</View> |
| 978 | +`; |
0 commit comments