@@ -4,9 +4,12 @@ exports[`Emotion native styled primitive should work with \`withComponent\` 1`]
4
4
<Text
5
5
decor = " hotpink"
6
6
style = {
7
- Object {
8
- " color" : " hotpink" ,
9
- }
7
+ Array [
8
+ Object {
9
+ " color" : " hotpink" ,
10
+ },
11
+ undefined ,
12
+ ]
10
13
}
11
14
>
12
15
Mike
@@ -17,9 +20,12 @@ exports[`Emotion native styled should pass props in withComponent 1`] = `
17
20
<View
18
21
color = " green"
19
22
style = {
20
- Object {
21
- " backgroundColor" : " green" ,
22
- }
23
+ Array [
24
+ Object {
25
+ " backgroundColor" : " green" ,
26
+ },
27
+ undefined ,
28
+ ]
23
29
}
24
30
/>
25
31
` ;
@@ -28,9 +34,12 @@ exports[`Emotion native styled should pass props in withComponent 2`] = `
28
34
<Text
29
35
color = " hotpink"
30
36
style = {
31
- Object {
32
- " backgroundColor" : " hotpink" ,
33
- }
37
+ Array [
38
+ Object {
39
+ " backgroundColor" : " hotpink" ,
40
+ },
41
+ undefined ,
42
+ ]
34
43
}
35
44
/>
36
45
` ;
@@ -45,23 +54,30 @@ exports[`Emotion native styled should render <Image /> 1`] = `
45
54
}
46
55
}
47
56
style = {
48
- Object {
49
- " borderBottomLeftRadius" : 2 ,
50
- " borderBottomRightRadius" : 2 ,
51
- " borderTopLeftRadius" : 2 ,
52
- " borderTopRightRadius" : 2 ,
53
- }
57
+ Array [
58
+ Object {
59
+ " borderBottomLeftRadius" : 2 ,
60
+ " borderBottomRightRadius" : 2 ,
61
+ " borderTopLeftRadius" : 2 ,
62
+ " borderTopRightRadius" : 2 ,
63
+ },
64
+ undefined ,
65
+ ]
54
66
}
55
67
/>
56
68
` ;
57
69
58
70
exports [` Emotion native styled should render primitive with style prop 1` ] = `
59
71
<Text
60
72
style = {
61
- Object {
62
- " color" : " hotpink" ,
63
- " padding" : 10 ,
64
- }
73
+ Array [
74
+ Object {
75
+ " color" : " hotpink" ,
76
+ },
77
+ Object {
78
+ " padding" : 10 ,
79
+ },
80
+ ]
65
81
}
66
82
>
67
83
Emotion primitives
@@ -72,10 +88,13 @@ exports[`Emotion native styled should render styles correctly from all nested st
72
88
<Text
73
89
backgroundColor = " blue"
74
90
style = {
75
- Object {
76
- " backgroundColor" : " blue" ,
77
- " color" : " hotpink" ,
78
- }
91
+ Array [
92
+ Object {
93
+ " backgroundColor" : " blue" ,
94
+ " color" : " hotpink" ,
95
+ },
96
+ undefined ,
97
+ ]
79
98
}
80
99
>
81
100
Hello World
@@ -86,13 +105,16 @@ exports[`Emotion native styled should render the primitive on changing the props
86
105
<Text
87
106
decor = " hotpink"
88
107
style = {
89
- Object {
90
- " color" : " hotpink" ,
91
- " paddingBottom" : 20 ,
92
- " paddingLeft" : 20 ,
93
- " paddingRight" : 20 ,
94
- " paddingTop" : 20 ,
95
- }
108
+ Array [
109
+ Object {
110
+ " color" : " hotpink" ,
111
+ " paddingBottom" : 20 ,
112
+ " paddingLeft" : 20 ,
113
+ " paddingRight" : 20 ,
114
+ " paddingTop" : 20 ,
115
+ },
116
+ undefined ,
117
+ ]
96
118
}
97
119
>
98
120
Emotion Primitives
@@ -103,11 +125,16 @@ exports[`Emotion native styled should render the primitive when styles applied u
103
125
<Text
104
126
back = " red"
105
127
style = {
106
- Object {
107
- " backgroundColor" : " red" ,
108
- " color" : " red" ,
109
- " fontSize" : 40 ,
110
- }
128
+ Array [
129
+ Object {
130
+ " backgroundColor" : " red" ,
131
+ " color" : " red" ,
132
+ " fontSize" : 20 ,
133
+ },
134
+ Object {
135
+ " fontSize" : 40 ,
136
+ },
137
+ ]
111
138
}
112
139
>
113
140
Emotion Primitives
@@ -117,9 +144,12 @@ exports[`Emotion native styled should render the primitive when styles applied u
117
144
exports [` Emotion native styled should style any other component 1` ] = `
118
145
<Text
119
146
style = {
120
- Object {
121
- " color" : " hotpink" ,
122
- }
147
+ Array [
148
+ Object {
149
+ " color" : " hotpink" ,
150
+ },
151
+ undefined ,
152
+ ]
123
153
}
124
154
>
125
155
Hello World
@@ -129,10 +159,12 @@ exports[`Emotion native styled should style any other component 1`] = `
129
159
exports [` Emotion native styled should work with StyleSheet.create API 1` ] = `
130
160
<Text
131
161
style = {
132
- Object {
133
- " color" : " red" ,
134
- " fontSize" : 10 ,
135
- }
162
+ Array [
163
+ Object {
164
+ " fontSize" : 10 ,
165
+ },
166
+ 74 ,
167
+ ]
136
168
}
137
169
>
138
170
Emotion primitives
@@ -142,9 +174,12 @@ exports[`Emotion native styled should work with StyleSheet.create API 1`] = `
142
174
exports [` Emotion native styled should work with theming from @emotion/react 1` ] = `
143
175
<Text
144
176
style = {
145
- Object {
146
- " color" : " magenta" ,
147
- }
177
+ Array [
178
+ Object {
179
+ " color" : " magenta" ,
180
+ },
181
+ undefined ,
182
+ ]
148
183
}
149
184
>
150
185
Hello World
0 commit comments