File tree 2 files changed +5
-0
lines changed
react-native/components/createTextComponent 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export const createTextComponent = (
33
33
lineHeight : fontSize * 1.4 ,
34
34
color,
35
35
textAlign : alignment ,
36
+ flexShrink : 1 ,
36
37
} ,
37
38
} ) ;
38
39
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ test(`renders single-line`, () => {
22
22
lineHeight : 51.8 ,
23
23
color : `#34AE17` ,
24
24
textAlign : `left` ,
25
+ flexShrink : 1 ,
25
26
} }
26
27
numberOfLines = { 1 }
27
28
>
@@ -49,6 +50,7 @@ test(`renders multi-line`, () => {
49
50
lineHeight : 51.8 ,
50
51
color : `#34AE17` ,
51
52
textAlign : `left` ,
53
+ flexShrink : 1 ,
52
54
} }
53
55
numberOfLines = { 0 }
54
56
>
@@ -76,6 +78,7 @@ test(`renders with onPress undefined`, () => {
76
78
lineHeight : 51.8 ,
77
79
color : `#34AE17` ,
78
80
textAlign : `left` ,
81
+ flexShrink : 1 ,
79
82
} }
80
83
numberOfLines = { 1 }
81
84
>
@@ -104,6 +107,7 @@ test(`renders with onPress set`, () => {
104
107
lineHeight : 51.8 ,
105
108
color : `#34AE17` ,
106
109
textAlign : `left` ,
110
+ flexShrink : 1 ,
107
111
} }
108
112
numberOfLines = { 1 }
109
113
onPress = { expect . any ( Function ) }
You can’t perform that action at this time.
0 commit comments