Commit 8c21421
committed
fix flow: resolve conditional style values in flattenStyle output
The conditional-value widening on style props leaked into flattenStyle's
return type, breaking ~15 consumers that expect concrete values (splitLayoutProps,
Image, Touchable, etc.). Widen flattenStyle's input bound to accept conditionals
and strip them from its output so a flattened style presents its resolved type.1 parent 6b3d98e commit 8c21421
1 file changed
Lines changed: 19 additions & 3 deletions
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | | - | |
1110 | | - | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1111 | 1116 | | |
1112 | 1117 | | |
1113 | 1118 | | |
| |||
1133 | 1138 | | |
1134 | 1139 | | |
1135 | 1140 | | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1136 | 1150 | | |
1137 | 1151 | | |
1138 | 1152 | | |
| |||
1164 | 1178 | | |
1165 | 1179 | | |
1166 | 1180 | | |
1167 | | - | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
0 commit comments