Commit d38c756
feat: add viewport size to LayoutContext class (#56209)
Summary:
Add viewport size to `LayoutContext` and wire it through Android and iOS layout setup so viewport dimensions are available during layout.
This was extracted from the larger `calc()` work in PR #56162.
## Changelog:
[GENERAL] [ADDED] - Add viewport size to LayoutContext
Pull Request resolved: #56209
Test Plan:
- This change is limited to internal layout plumbing in React Native core and does not alter external behavior on its own.
- Validation for the actual `calc()` use cases will be covered in the follow-up work that consumes this plumbing.
Reviewed By: christophpurrer
Differential Revision: D98004758
Pulled By: NickGerleman
fbshipit-source-id: 3fd6257b2c280442a41308af3e6eff30b51a33971 parent a92bea8 commit d38c756
File tree
3 files changed
+13
-2
lines changed- packages/react-native
- ReactAndroid/src/main/jni/react/fabric
- ReactCommon/react/renderer/core
- React/Fabric/Surface
3 files changed
+13
-2
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| 240 | + | |
| 241 | + | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | | - | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
77 | | - | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
0 commit comments