Commit 352d73b
Add NativeViewHierarchyOptimizer parameter to ReactShadowNode methods (facebook#55661)
Summary:
Pull Request resolved: facebook#55661
Add a `NativeViewHierarchyOptimizer` parameter to `onBeforeLayout()` and `dispatchUpdates()` methods in `ReactShadowNode` and `ReactShadowNodeImpl`. This introduces a deprecated stub class `NativeViewHierarchyOptimizer.kt` annotated with `LegacyArchitecture` to support downstream callers that still reference this type, while signaling that it is part of the legacy architecture and will be removed in the future.
Callers in `UIImplementation` pass `null` for now since the optimizer is not actively used in this code path.
Changelog: [Android][Deprecated] - Deprecate NativeViewHierarchyOptimizer as part of Legacy Architecture cleanup
Reviewed By: NickGerleman
Differential Revision: D93935604
fbshipit-source-id: 0d96d30f0089a5a896a80f6da7e6d53b5f4e86751 parent 3918dd1 commit 352d73b
5 files changed
Lines changed: 38 additions & 10 deletions
File tree
- packages/react-native/ReactAndroid
- api
- src/main/java/com/facebook/react/uimanager
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3539 | 3539 | | |
3540 | 3540 | | |
3541 | 3541 | | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
3542 | 3546 | | |
3543 | 3547 | | |
3544 | 3548 | | |
| |||
3839 | 3843 | | |
3840 | 3844 | | |
3841 | 3845 | | |
3842 | | - | |
| 3846 | + | |
3843 | 3847 | | |
3844 | 3848 | | |
3845 | 3849 | | |
| |||
3888 | 3892 | | |
3889 | 3893 | | |
3890 | 3894 | | |
3891 | | - | |
| 3895 | + | |
3892 | 3896 | | |
3893 | 3897 | | |
3894 | 3898 | | |
| |||
3965 | 3969 | | |
3966 | 3970 | | |
3967 | 3971 | | |
3968 | | - | |
| 3972 | + | |
3969 | 3973 | | |
3970 | 3974 | | |
3971 | 3975 | | |
| |||
4022 | 4026 | | |
4023 | 4027 | | |
4024 | 4028 | | |
4025 | | - | |
| 4029 | + | |
4026 | 4030 | | |
4027 | 4031 | | |
4028 | 4032 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
371 | 374 | | |
372 | 375 | | |
373 | 376 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
| 852 | + | |
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
| 900 | + | |
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
| |||
0 commit comments