CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 08:33:44 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/facebook/react-native.git
etag: W/"2eb16ee7b2d14471b4ef8232cadb86b6"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=dpATgE4742I02l44FLeGJamlHaVFPxtC90Bcwv60eslGwz8%2F00fzWEujhgib1WeS4t5OyzaPq3ZCWAAQQsvAQfMksGKV7pcem0chNa8NbUjaKagLG0t7Ea54Ni%2FGSbJ50KIGtZGtzIuk1ol9ZrcxebbLRI69SzA9sOg7JLRO4D8CDqsOmRKRLURUqyvrYWPkE2H%2FLlrZJO6JkvHtvFQm8n722AhrFBmrbvH8FSYs80K7zC3ujA4vPSyGs4bY6jWNUziiFVjqAwDXQl4yM%2B4BvQ%3D%3D--msCMBWL%2F02cj3536--mh3MjYCXvcPFMzOrO4J86w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1181761677.1753950823; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 08:33:43 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 08:33:43 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B772:144580:620EB3:791F63:688B2A67
BREAKING - Fix unconstraint sizing in main axis · facebook/react-native@0a9b6be · GitHub

authored andcommitted
Copy file name to clipboardExpand all lines: Libraries/Components/ScrollView/ScrollView.js
Copy file name to clipboardExpand all lines: Libraries/Components/View/ViewStylePropTypes.js
Copy file name to clipboardExpand all lines: Libraries/StyleSheet/LayoutPropTypes.js
Copy file name to clipboardExpand all lines: React/CSSLayout/CSSLayout.c
Copy file name to clipboardExpand all lines: React/CSSLayout/CSSLayout.h
Copy file name to clipboardExpand all lines: React/Views/RCTScrollViewManager.m
Copy file name to clipboardExpand all lines: React/Views/RCTViewManager.h
Copy file name to clipboardExpand all lines: React/Views/RCTViewManager.m
Copy file name to clipboardExpand all lines: ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayout.java
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Commit 0a9b6be


Emil Sjolander
Facebook Github Bot 6
BREAKING - Fix unconstraint sizing in main axis
Summary:
This fixes measuring of items in the main axis of a container. Previously items were in a lot of cases measured with UNSPECIFIED instead of AT_MOST. This was to support scrolling containers. The correct way to handle scrolling containers is to instead provide them with their own overflow value to activate this behavior. This is also similar to how the web works.
This is a breaking change. Most of your layouts will continue to function as before however some of them might not. Typically this is due to having a `flex: 1` style where it is currently a no-op due to being measured with an undefined size but after this change it may collapse your component to take zero size due to the implicit `flexBasis: 0` now being correctly treated. Removing the bad `flex: 1` style or changing it to `flexGrow: 1` should solve most if not all layout issues your see after this diff.
Reviewed By: majak
Differential Revision: D3876927
fbshipit-source-id: 81ea1c9d6574dd4564a3333f1b3617cf84b4022f1 parent 295ee16 commit 0a9b6beCopy full SHA for 0a9b6be
File tree
Expand file treeCollapse file tree
15 files changed
+90
-36
lines changedFilter options
- Libraries
- Components
- ScrollView
- View
- StyleSheet
- ReactAndroid/src/main/java/com/facebook
- csslayout
- react/uimanager
- React
- Base
- CSSLayout
- Views
Expand file treeCollapse file tree
15 files changed
+90
-36
lines changedLibraries/Components/ScrollView/ScrollView.js
Copy file name to clipboardExpand all lines: Libraries/Components/ScrollView/ScrollView.js+5-3Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
529 | 529 |
| |
530 | 530 |
| |
531 | 531 |
| |
532 |
| - | |
| 532 | + | |
533 | 533 |
| |
534 | 534 |
| |
535 | 535 |
| |
| |||
545 | 545 |
| |
546 | 546 |
| |
547 | 547 |
| |
548 |
| - | |
| 548 | + | |
549 | 549 |
| |
| 550 | + | |
550 | 551 |
| |
551 | 552 |
| |
552 |
| - | |
| 553 | + | |
553 | 554 |
| |
| 555 | + | |
554 | 556 |
| |
555 | 557 |
| |
556 | 558 |
| |
|
Libraries/Components/View/ViewStylePropTypes.js
Copy file name to clipboardExpand all lines: Libraries/Components/View/ViewStylePropTypes.js-1Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
47 | 46 |
| |
48 | 47 |
| |
49 | 48 |
| |
|
Libraries/StyleSheet/LayoutPropTypes.js
Copy file name to clipboardExpand all lines: Libraries/StyleSheet/LayoutPropTypes.js+13Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
328 | 328 |
| |
329 | 329 |
| |
330 | 330 |
| |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
331 | 344 |
| |
332 | 345 |
| |
333 | 346 |
| |
|
+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
612 | 612 |
| |
613 | 613 |
| |
614 | 614 |
| |
615 |
| - | |
| 615 | + | |
| 616 | + | |
616 | 617 |
| |
617 | 618 |
| |
618 | 619 |
| |
|
React/CSSLayout/CSSLayout.c
Copy file name to clipboardExpand all lines: React/CSSLayout/CSSLayout.c+19-15Lines changed: 19 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
| 186 | + | |
186 | 187 |
| |
187 | 188 |
| |
188 | 189 |
| |
| |||
193 | 194 |
| |
194 | 195 |
| |
195 | 196 |
| |
| 197 | + | |
196 | 198 |
| |
197 | 199 |
| |
198 | 200 |
| |
| |||
451 | 453 |
| |
452 | 454 |
| |
453 | 455 |
| |
| 456 | + | |
| 457 | + | |
454 | 458 |
| |
455 | 459 |
| |
456 | 460 |
| |
| |||
1117 | 1121 |
| |
1118 | 1122 |
| |
1119 | 1123 |
| |
1120 |
| - | |
1121 |
| - | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1122 | 1128 |
| |
1123 | 1129 |
| |
1124 | 1130 |
| |
| |||
1138 | 1144 |
| |
1139 | 1145 |
| |
1140 | 1146 |
| |
1141 |
| - | |
1142 |
| - | |
1143 |
| - | |
1144 |
| - | |
1145 |
| - | |
1146 |
| - | |
1147 |
| - | |
1148 |
| - | |
1149 |
| - | |
1150 |
| - | |
1151 | 1147 |
| |
1152 | 1148 |
| |
1153 |
| - | |
1154 |
| - | |
1155 |
| - | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
1156 | 1160 |
| |
1157 | 1161 |
| |
1158 | 1162 |
| |
|
React/CSSLayout/CSSLayout.h
Copy file name to clipboardExpand all lines: React/CSSLayout/CSSLayout.h+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
|
React/Views/RCTScrollViewManager.m
Copy file name to clipboardExpand all lines: React/Views/RCTScrollViewManager.m+10Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
| |||
79 | 80 |
| |
80 | 81 |
| |
81 | 82 |
| |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
82 | 92 |
| |
83 | 93 |
| |
84 | 94 |
| |
|
React/Views/RCTViewManager.h
Copy file name to clipboardExpand all lines: React/Views/RCTViewManager.h+15Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
120 | 135 |
|
React/Views/RCTViewManager.m
Copy file name to clipboardExpand all lines: React/Views/RCTViewManager.m+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 |
| - | |
| 125 | + | |
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
|
ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayout.java
Copy file name to clipboardExpand all lines: ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayout.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
| 54 | + | |
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
|
You can’t perform that action at this time.
0 commit comments