You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a View with margin inside a parent View that has alignItems: 'stretch', the child's width is incorrectly calculated. The margin appears to be subtracted multiple times from the available width, making the child View significantly narrower than expected.
Expected behaviour
Given a parent View of width 400 and a child View with margin: 20:
Description
When using a View with
margin
inside a parent View that hasalignItems: 'stretch'
, the child's width is incorrectly calculated. The margin appears to be subtracted multiple times from the available width, making the child View significantly narrower than expected.Expected behaviour
Given a parent View of width 400 and a child View with
margin: 20
:360
(parent width - margin * 2)Steps to reproduce
React Native Version
0.77.1
Affected Platforms
Runtime - iOS
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://github.com/LJNGDAHL/layout-bug
Screenshots and Videos
The text was updated successfully, but these errors were encountered: