Skip to content

Artifacts on View with borderRadius on only 2 corners on iOS when the app is "inactive" #51489

Open
@idutka

Description

@idutka

Description

When a View has some corners rounded and some not, the corners opposite the rounded ones have a "shadow" effect when the app goes to "inactive" state.

Image

Steps to reproduce

<View style={{ justifyContent: "center", alignItems: "center", flex: 1 }}>
  <View
    style={{
      width: 100,
      height: 100,
      borderColor: "#000",
      borderWidth: 1,
      borderBottomLeftRadius: 30,
      borderTopLeftRadius: 30,
    }}
  />
</View>

Solution

Round all corners

<View style={{ justifyContent: "center", alignItems: "center", flex: 1 }}>
  <View
    style={{
      width: 100,
      height: 100,
      borderColor: "#000",
      borderWidth: 1,
      borderRadius: 2,
      borderBottomLeftRadius: 30,
      borderTopLeftRadius: 30,
    }}
  />
</View>

React Native Version

0.76.9

Affected Platforms

Runtime - iOS

Output of npx @react-native-community/cli info

-

Stacktrace or Logs

-

MANDATORY Reproducer

Screenshots and Videos

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Platform: iOSiOS applications.Type: Unsupported VersionIssues reported to a version of React Native that is no longer supported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions