-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the issue
I've noticed discrepancy between web and native.
Initially I thought it's Yoga bug but thank to Nick it turned out that View component is compatible on web.
The issue is that View on native while set with flex: 1 it translates to flex-grow: 1 + flex-shrink: 1
On web platform it just sets flex-grow: 1 while what leads to different behaviour in some cases.
| iOS | Android | Web |
|---|---|---|
![]() |
![]() |
![]() |
Expected behavior
Equal behaviour on both native and web
Steps to reproduce
- Open linked snack
- See Web, Android and iOS
Test case
https://snack.expo.dev/@matew/yoga-rendering-issue
Additional comments
I believe it's small change code wise but most likely drastic change for users.
My hope is to start some discussion and see different PoV
nspaeth


