Commit bedf33f
Deprecate ViewUtil.getUIManagerType and inline UIManagerType.Fabric (#56451)
Summary:
With Fabric as the only supported renderer, `ViewUtil.getUIManagerType()` always returns `UIManagerType.FABRIC`. This diff inlines that constant throughout and removes all Paper-only code paths:
- `ReactRootView.setIsFabric()` → no-op, `getUIManagerType()` → returns FABRIC
- `ReactInstanceManager.attachRootViewToInstance` → Fabric-only (removes `addRootView`/`runApplication` path)
- `ReactInstanceManager.detachRootViewFromInstance` → removes `AppRegistry.unmountApplicationComponentAtRootTag` path
- `NativeAnimatedModule` → removes Fabric/non-Fabric animation counting, `willDispatchViewUpdates` is no-op
- `PropsAnimatedNode.restoreDefaultValues()` → no-op (was only relevant for Paper ShadowNode sync)
- `BackgroundStyleApplicator` → removes Fabric guards on outline/boxShadow/filter/blendMode setters
- `BaseViewManager` → removes Fabric guards on filter/mixBlendMode
- `TransformHelper` → removes `allowPercentageResolution` parameter (always true)
- `TouchTargetHelper` → removes Fabric guard on overflow inset check
- `ComponentsReactNativeSupportProcessor` → removes legacy Litho view creation path
- `ReactHorizontalScrollContainerLegacyView` → deleted, `ReactHorizontalScrollContainerViewManager` simplified
- `ReactTextView` → removes Paper-specific text update logic
- `ViewUtil.getUIManagerType()` → deprecated, hardcoded to return FABRIC
Pull Request resolved: #56451
Changelog: [Internal]
Reviewed By: christophpurrer, NickGerleman
Differential Revision: D91222827
fbshipit-source-id: 26172ad8111e927ff4787e566b19de94906592091 parent cf1975f commit bedf33f
24 files changed
Lines changed: 186 additions & 767 deletions
File tree
- packages/react-native/ReactAndroid
- api
- src
- main/java/com/facebook/react
- animated
- runtime
- uimanager
- common
- views
- scroll
- textinput
- text
- view
- test/java/com/facebook/react/animated
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3062 | 3062 | | |
3063 | 3063 | | |
3064 | 3064 | | |
3065 | | - | |
3066 | 3065 | | |
3067 | 3066 | | |
3068 | 3067 | | |
| |||
3071 | 3070 | | |
3072 | 3071 | | |
3073 | 3072 | | |
3074 | | - | |
3075 | 3073 | | |
3076 | 3074 | | |
3077 | 3075 | | |
| |||
5520 | 5518 | | |
5521 | 5519 | | |
5522 | 5520 | | |
5523 | | - | |
5524 | 5521 | | |
5525 | 5522 | | |
5526 | 5523 | | |
| |||
Lines changed: 30 additions & 57 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | | - | |
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
| |||
767 | 765 | | |
768 | 766 | | |
769 | 767 | | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
| 768 | + | |
774 | 769 | | |
775 | 770 | | |
776 | 771 | | |
| |||
1271 | 1266 | | |
1272 | 1267 | | |
1273 | 1268 | | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
| 1269 | + | |
1277 | 1270 | | |
1278 | 1271 | | |
1279 | 1272 | | |
| |||
1284 | 1277 | | |
1285 | 1278 | | |
1286 | 1279 | | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
1307 | | - | |
1308 | | - | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1309 | 1290 | | |
1310 | 1291 | | |
1311 | 1292 | | |
| |||
1326 | 1307 | | |
1327 | 1308 | | |
1328 | 1309 | | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1345 | 1321 | | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
| 1322 | + | |
1350 | 1323 | | |
1351 | | - | |
1352 | | - | |
1353 | 1324 | | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
1358 | 1329 | | |
| 1330 | + | |
| 1331 | + | |
1359 | 1332 | | |
1360 | 1333 | | |
1361 | 1334 | | |
| |||
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | | - | |
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
| |||
307 | 305 | | |
308 | 306 | | |
309 | 307 | | |
310 | | - | |
311 | | - | |
312 | | - | |
| 308 | + | |
313 | 309 | | |
314 | 310 | | |
315 | 311 | | |
| |||
474 | 470 | | |
475 | 471 | | |
476 | 472 | | |
477 | | - | |
| 473 | + | |
478 | 474 | | |
479 | 475 | | |
480 | 476 | | |
| |||
646 | 642 | | |
647 | 643 | | |
648 | 644 | | |
649 | | - | |
650 | | - | |
651 | | - | |
| 645 | + | |
652 | 646 | | |
653 | 647 | | |
654 | 648 | | |
| |||
887 | 881 | | |
888 | 882 | | |
889 | 883 | | |
| 884 | + | |
| 885 | + | |
890 | 886 | | |
891 | | - | |
| 887 | + | |
892 | 888 | | |
893 | 889 | | |
894 | 890 | | |
895 | 891 | | |
896 | | - | |
| 892 | + | |
897 | 893 | | |
898 | 894 | | |
| 895 | + | |
899 | 896 | | |
900 | 897 | | |
901 | 898 | | |
| |||
0 commit comments