Commit 09fc3b7
authored
fix(macos): <Text> with backgroundColor spills color past it's frame (#2401)
## Summary:
For some odd reason, if you set `backgroundColor` on a Text component,
the color spills out past the frame to the parent. We can work around
this by setting border radius... which somehow prevents this behavior. I
need to debug the native side more (and may update this PR with a proper
fix if I find one), but for now let's patch the JS to set a dummy value
for borderRadius if we create a Text Element with backgroundColor and
without borderRadius
## Test Plan:
A bunch of examples in RNTester are now visible... like the "Recently
Viewed" section.
<img width="616" alt="image"
src="https://github.com/user-attachments/assets/10ac2e6e-2ee6-4a04-8f96-56c92dcc2e68"
/>1 parent 3ba1936 commit 09fc3b7
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
162 | 177 | | |
163 | 178 | | |
164 | 179 | | |
| |||
0 commit comments