clwy-react-native-tableview-simple 4.5.0

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.
@@ -0,0 +1,229 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders basic 1`] = `
4
+ <View>
5
+ <RCTSafeAreaView
6
+ style={
7
+ [
8
+ {
9
+ "backgroundColor": "#FFF",
10
+ },
11
+ {
12
+ "flexGrow": 1,
13
+ },
14
+ ]
15
+ }
16
+ >
17
+ <View
18
+ style={
19
+ [
20
+ {
21
+ "alignItems": "center",
22
+ "flexDirection": "row",
23
+ "minHeight": 44,
24
+ "paddingLeft": 15,
25
+ "paddingRight": 20,
26
+ },
27
+ {},
28
+ ]
29
+ }
30
+ >
31
+ <View
32
+ style={
33
+ {
34
+ "alignItems": "center",
35
+ "flexBasis": 0,
36
+ "flexDirection": "row",
37
+ "flexGrow": 1,
38
+ "justifyContent": "center",
39
+ "paddingVertical": 10,
40
+ }
41
+ }
42
+ >
43
+ <Text
44
+ allowFontScaling={true}
45
+ numberOfLines={1}
46
+ style={
47
+ [
48
+ {
49
+ "flexGrow": 1,
50
+ "fontSize": 16,
51
+ "letterSpacing": -0.32,
52
+ },
53
+ {
54
+ "color": "#000",
55
+ },
56
+ {},
57
+ ]
58
+ }
59
+ >
60
+ Basic
61
+ </Text>
62
+ </View>
63
+ </View>
64
+ </RCTSafeAreaView>
65
+ </View>
66
+ `;
67
+
68
+ exports[`renders with accessory 1`] = `
69
+ <View>
70
+ <RCTSafeAreaView
71
+ style={
72
+ [
73
+ {
74
+ "backgroundColor": "#FFF",
75
+ },
76
+ {
77
+ "flexGrow": 1,
78
+ },
79
+ ]
80
+ }
81
+ >
82
+ <View
83
+ style={
84
+ [
85
+ {
86
+ "alignItems": "center",
87
+ "flexDirection": "row",
88
+ "minHeight": 44,
89
+ "paddingLeft": 15,
90
+ "paddingRight": 20,
91
+ },
92
+ {},
93
+ ]
94
+ }
95
+ >
96
+ <View
97
+ style={
98
+ {
99
+ "alignItems": "center",
100
+ "flexBasis": 0,
101
+ "flexDirection": "row",
102
+ "flexGrow": 1,
103
+ "justifyContent": "center",
104
+ "paddingVertical": 10,
105
+ }
106
+ }
107
+ >
108
+ <Text
109
+ allowFontScaling={true}
110
+ numberOfLines={1}
111
+ style={
112
+ [
113
+ {
114
+ "flexGrow": 1,
115
+ "fontSize": 16,
116
+ "letterSpacing": -0.32,
117
+ },
118
+ {
119
+ "color": "#000",
120
+ },
121
+ {},
122
+ ]
123
+ }
124
+ >
125
+ Basic
126
+ </Text>
127
+ </View>
128
+ <View
129
+ style={
130
+ {
131
+ "justifyContent": "center",
132
+ }
133
+ }
134
+ >
135
+ <View
136
+ style={
137
+ [
138
+ {
139
+ "backgroundColor": "transparent",
140
+ "borderColor": "#c7c7cc",
141
+ "borderRightWidth": 1,
142
+ "borderTopWidth": 1,
143
+ "height": 10,
144
+ "marginLeft": 7,
145
+ "transform": [
146
+ {
147
+ "rotate": "45deg",
148
+ },
149
+ ],
150
+ "width": 10,
151
+ },
152
+ {
153
+ "borderColor": "#C7C7CC",
154
+ },
155
+ ]
156
+ }
157
+ />
158
+ </View>
159
+ </View>
160
+ </RCTSafeAreaView>
161
+ </View>
162
+ `;
163
+
164
+ exports[`renders with testID 1`] = `
165
+ <View
166
+ testID="testID"
167
+ >
168
+ <RCTSafeAreaView
169
+ style={
170
+ [
171
+ {
172
+ "backgroundColor": "#FFF",
173
+ },
174
+ {
175
+ "flexGrow": 1,
176
+ },
177
+ ]
178
+ }
179
+ >
180
+ <View
181
+ style={
182
+ [
183
+ {
184
+ "alignItems": "center",
185
+ "flexDirection": "row",
186
+ "minHeight": 44,
187
+ "paddingLeft": 15,
188
+ "paddingRight": 20,
189
+ },
190
+ {},
191
+ ]
192
+ }
193
+ >
194
+ <View
195
+ style={
196
+ {
197
+ "alignItems": "center",
198
+ "flexBasis": 0,
199
+ "flexDirection": "row",
200
+ "flexGrow": 1,
201
+ "justifyContent": "center",
202
+ "paddingVertical": 10,
203
+ }
204
+ }
205
+ >
206
+ <Text
207
+ allowFontScaling={true}
208
+ numberOfLines={1}
209
+ style={
210
+ [
211
+ {
212
+ "flexGrow": 1,
213
+ "fontSize": 16,
214
+ "letterSpacing": -0.32,
215
+ },
216
+ {
217
+ "color": "#000",
218
+ },
219
+ {},
220
+ ]
221
+ }
222
+ >
223
+ Basic
224
+ </Text>
225
+ </View>
226
+ </View>
227
+ </RCTSafeAreaView>
228
+ </View>
229
+ `;
@@ -0,0 +1,315 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders with accessory 1`] = `
4
+ <View>
5
+ <RCTSafeAreaView
6
+ style={
7
+ [
8
+ {
9
+ "backgroundColor": "#FFF",
10
+ },
11
+ {
12
+ "flexGrow": 1,
13
+ },
14
+ ]
15
+ }
16
+ >
17
+ <View
18
+ style={
19
+ [
20
+ {
21
+ "alignItems": "center",
22
+ "flexDirection": "row",
23
+ "minHeight": 44,
24
+ "paddingLeft": 15,
25
+ "paddingRight": 20,
26
+ },
27
+ {},
28
+ ]
29
+ }
30
+ >
31
+ <View
32
+ style={
33
+ {
34
+ "alignItems": "center",
35
+ "flexBasis": 0,
36
+ "flexDirection": "row",
37
+ "flexGrow": 1,
38
+ "justifyContent": "center",
39
+ "paddingVertical": 10,
40
+ }
41
+ }
42
+ >
43
+ <Text
44
+ allowFontScaling={true}
45
+ numberOfLines={1}
46
+ style={
47
+ [
48
+ {
49
+ "alignSelf": "center",
50
+ "fontSize": 12,
51
+ "marginRight": 5,
52
+ "textAlign": "right",
53
+ "width": 75,
54
+ },
55
+ {
56
+ "color": "#007AFF",
57
+ },
58
+ {},
59
+ ]
60
+ }
61
+ >
62
+ Detail
63
+ </Text>
64
+ <Text
65
+ allowFontScaling={true}
66
+ numberOfLines={1}
67
+ style={
68
+ [
69
+ {
70
+ "flexGrow": 1,
71
+ "fontSize": 12,
72
+ },
73
+ {
74
+ "color": "#000",
75
+ },
76
+ ]
77
+ }
78
+ >
79
+ LeftDetail
80
+ </Text>
81
+ </View>
82
+ <View
83
+ style={
84
+ {
85
+ "justifyContent": "center",
86
+ }
87
+ }
88
+ >
89
+ <View
90
+ style={
91
+ [
92
+ {
93
+ "backgroundColor": "transparent",
94
+ "borderColor": "#c7c7cc",
95
+ "borderRightWidth": 1,
96
+ "borderTopWidth": 1,
97
+ "height": 10,
98
+ "marginLeft": 7,
99
+ "transform": [
100
+ {
101
+ "rotate": "45deg",
102
+ },
103
+ ],
104
+ "width": 10,
105
+ },
106
+ {
107
+ "borderColor": "#C7C7CC",
108
+ },
109
+ ]
110
+ }
111
+ />
112
+ </View>
113
+ </View>
114
+ </RCTSafeAreaView>
115
+ </View>
116
+ `;
117
+
118
+ exports[`renders with accessory and onPressDetailAccessory 1`] = `
119
+ <View>
120
+ <RCTSafeAreaView
121
+ style={
122
+ [
123
+ {
124
+ "backgroundColor": "#FFF",
125
+ },
126
+ {
127
+ "flexGrow": 1,
128
+ },
129
+ ]
130
+ }
131
+ >
132
+ <View
133
+ style={
134
+ [
135
+ {
136
+ "alignItems": "center",
137
+ "flexDirection": "row",
138
+ "minHeight": 44,
139
+ "paddingLeft": 15,
140
+ "paddingRight": 20,
141
+ },
142
+ {},
143
+ ]
144
+ }
145
+ >
146
+ <View
147
+ style={
148
+ {
149
+ "alignItems": "center",
150
+ "flexBasis": 0,
151
+ "flexDirection": "row",
152
+ "flexGrow": 1,
153
+ "justifyContent": "center",
154
+ "paddingVertical": 10,
155
+ }
156
+ }
157
+ >
158
+ <Text
159
+ allowFontScaling={true}
160
+ numberOfLines={1}
161
+ style={
162
+ [
163
+ {
164
+ "alignSelf": "center",
165
+ "fontSize": 12,
166
+ "marginRight": 5,
167
+ "textAlign": "right",
168
+ "width": 75,
169
+ },
170
+ {
171
+ "color": "#007AFF",
172
+ },
173
+ {},
174
+ ]
175
+ }
176
+ >
177
+ Detail
178
+ </Text>
179
+ <Text
180
+ allowFontScaling={true}
181
+ numberOfLines={1}
182
+ style={
183
+ [
184
+ {
185
+ "flexGrow": 1,
186
+ "fontSize": 12,
187
+ },
188
+ {
189
+ "color": "#000",
190
+ },
191
+ ]
192
+ }
193
+ >
194
+ LeftDetail
195
+ </Text>
196
+ </View>
197
+ <View
198
+ style={
199
+ {
200
+ "justifyContent": "center",
201
+ }
202
+ }
203
+ >
204
+ <View
205
+ style={
206
+ [
207
+ {
208
+ "backgroundColor": "transparent",
209
+ "borderColor": "#c7c7cc",
210
+ "borderRightWidth": 1,
211
+ "borderTopWidth": 1,
212
+ "height": 10,
213
+ "marginLeft": 7,
214
+ "transform": [
215
+ {
216
+ "rotate": "45deg",
217
+ },
218
+ ],
219
+ "width": 10,
220
+ },
221
+ {
222
+ "borderColor": "#C7C7CC",
223
+ },
224
+ ]
225
+ }
226
+ />
227
+ </View>
228
+ </View>
229
+ </RCTSafeAreaView>
230
+ </View>
231
+ `;
232
+
233
+ exports[`renders with left detail 1`] = `
234
+ <View>
235
+ <RCTSafeAreaView
236
+ style={
237
+ [
238
+ {
239
+ "backgroundColor": "#FFF",
240
+ },
241
+ {
242
+ "flexGrow": 1,
243
+ },
244
+ ]
245
+ }
246
+ >
247
+ <View
248
+ style={
249
+ [
250
+ {
251
+ "alignItems": "center",
252
+ "flexDirection": "row",
253
+ "minHeight": 44,
254
+ "paddingLeft": 15,
255
+ "paddingRight": 20,
256
+ },
257
+ {},
258
+ ]
259
+ }
260
+ >
261
+ <View
262
+ style={
263
+ {
264
+ "alignItems": "center",
265
+ "flexBasis": 0,
266
+ "flexDirection": "row",
267
+ "flexGrow": 1,
268
+ "justifyContent": "center",
269
+ "paddingVertical": 10,
270
+ }
271
+ }
272
+ >
273
+ <Text
274
+ allowFontScaling={true}
275
+ numberOfLines={1}
276
+ style={
277
+ [
278
+ {
279
+ "alignSelf": "center",
280
+ "fontSize": 12,
281
+ "marginRight": 5,
282
+ "textAlign": "right",
283
+ "width": 75,
284
+ },
285
+ {
286
+ "color": "#007AFF",
287
+ },
288
+ {},
289
+ ]
290
+ }
291
+ >
292
+ Detail
293
+ </Text>
294
+ <Text
295
+ allowFontScaling={true}
296
+ numberOfLines={1}
297
+ style={
298
+ [
299
+ {
300
+ "flexGrow": 1,
301
+ "fontSize": 12,
302
+ },
303
+ {
304
+ "color": "#000",
305
+ },
306
+ ]
307
+ }
308
+ >
309
+ LeftDetail
310
+ </Text>
311
+ </View>
312
+ </View>
313
+ </RCTSafeAreaView>
314
+ </View>
315
+ `;