Closed
Description
Report
- I have searched existing issues and this is not a duplicate
Issues and Steps to Reproduce
Create a setup like follows
<View style={{ height: 500 }}>
<View style={{ flex: 0, height: 300 }} />
<View style={{ flex: 0, marginTop: 'auto', height: 300 }} />
</View>
Expected Behavior
The bottom view should overflow the parent (as happens on the web)
Actual Behavior
The bottom view gets a negative top margin applied, and overlaps the top view. Nothing overflows the parent
Link to Code
Notes
If you remove marginTop: auto
you get the correct behaviour
I did find these few lines
I'm not sure what the logic of remainingFreeSpace
is - if it should allow negative values or not. If it does allow them, it might just need a max(0, ...)