Skip to content

"Button" inside a "View" with 0 height can be still partially seen #26421

Closed
@Shuyifan

Description

@Shuyifan

React Native version: 0.59

Steps To Reproduce

  1. Using an IOS device, or IOS simulator
  2. Using the following code
<View style={{height:0}}>
    <Button title="There is an issue"></Button>
</View>

Describe what you expected to happen:
For the snack provided, the expected result will be that nothing will show. Because the height of view is already set to be 0.

On Android device, it works as expecet. But on IOS device, the bottom sheet is still partily shown as follows:
Screen Shot 2019-09-12 at 2 28 24 PM

snack: https://snack.expo.io/ryVvONu8B

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugComponent: ButtonStaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions