Commit 0fa7e01
Remove ReactScrollView Legacy Background Path (facebook#46168)
Summary:
Pull Request resolved: facebook#46168
## This Diff
This removes the legacy path from ReactScrollView and its view manager.
## This Stack
This removes the non-Style-applicator background management paths of the different native components. There have been multiple conflicting changes, and bugs added bc harder to reason about, which motivates making this change as soon as possible. This also lets us formalize guarantees that BaseViewManager may safely manipulate background styling of all built in native components.
There is one still known issue, where BackgroundStyleApplicator does not propagate I18nManager derived layout direction to borders (compared to Android derived root direction). This is mostly an issue for apps that with LTR and RTL context, or force a layout direction, which I would guess is relatively rare, so my plan is to forward fix this later this by enabling set_android_layout_direction which will solve that problem mopre generically.
Changelog: [Internal]
Reviewed By: tdn120
Differential Revision: D61658081
fbshipit-source-id: d6db43e25faf8e1ebd42d2816c7a915b3ed9404e1 parent e58d300 commit 0fa7e01
File tree
2 files changed
+29
-95
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll
2 files changed
+29
-95
lines changedLines changed: 15 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | | - | |
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
| |||
119 | 116 | | |
120 | 117 | | |
121 | 118 | | |
122 | | - | |
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
| |||
140 | 136 | | |
141 | 137 | | |
142 | 138 | | |
143 | | - | |
144 | 139 | | |
145 | 140 | | |
146 | 141 | | |
147 | 142 | | |
148 | 143 | | |
149 | | - | |
150 | 144 | | |
151 | 145 | | |
152 | 146 | | |
| |||
278 | 272 | | |
279 | 273 | | |
280 | 274 | | |
281 | | - | |
282 | 275 | | |
283 | 276 | | |
284 | 277 | | |
| |||
684 | 677 | | |
685 | 678 | | |
686 | 679 | | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
| 680 | + | |
| 681 | + | |
693 | 682 | | |
694 | 683 | | |
695 | 684 | | |
| |||
1261 | 1250 | | |
1262 | 1251 | | |
1263 | 1252 | | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
| 1253 | + | |
1269 | 1254 | | |
1270 | 1255 | | |
1271 | 1256 | | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
| 1257 | + | |
| 1258 | + | |
1278 | 1259 | | |
1279 | 1260 | | |
1280 | 1261 | | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
| 1262 | + | |
1286 | 1263 | | |
1287 | 1264 | | |
1288 | 1265 | | |
1289 | 1266 | | |
1290 | 1267 | | |
1291 | 1268 | | |
1292 | 1269 | | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
1304 | 1277 | | |
1305 | 1278 | | |
1306 | 1279 | | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
| 1280 | + | |
| 1281 | + | |
1313 | 1282 | | |
1314 | 1283 | | |
1315 | 1284 | | |
| |||
Lines changed: 14 additions & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
245 | 244 | | |
246 | 245 | | |
247 | 246 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
266 | 253 | | |
267 | 254 | | |
268 | 255 | | |
269 | 256 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
278 | 261 | | |
279 | 262 | | |
280 | 263 | | |
| |||
287 | 270 | | |
288 | 271 | | |
289 | 272 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
| 273 | + | |
299 | 274 | | |
300 | 275 | | |
301 | 276 | | |
| |||
308 | 283 | | |
309 | 284 | | |
310 | 285 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
| 286 | + | |
316 | 287 | | |
317 | 288 | | |
318 | 289 | | |
| |||
374 | 345 | | |
375 | 346 | | |
376 | 347 | | |
377 | | - | |
378 | | - | |
379 | | - | |
| 348 | + | |
380 | 349 | | |
381 | 350 | | |
382 | 351 | | |
383 | 352 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 353 | + | |
389 | 354 | | |
390 | 355 | | |
391 | 356 | | |
| |||
0 commit comments