Skip to content

Overflow hidden property on View not working #399

@AkshatGiri

Description

@AkshatGiri

Issue

Children views overflow parent view even when style property overflow is set to hidden.

Steps to Reproduce

<View style={{backgroundColor: 'red', width: 100, height: 100, overflow: 'hidden'}}>
    <View
        style={{
          backgroundColor: 'blue',
          width: 200,
          height: 200,
          opacity: 0.4,
        }}
    />
</View>

Child view overflows the bounds of the parent view.

image

Expected Behavior

should result in

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions