React-native: View borderRadius antiAliasing android

Created on 31 Jan 2018  Â·  5Comments  Â·  Source: facebook/react-native

Is this a bug report?

Yes

Environment

Environment:
  OS: Windows 10
  Node: 8.1.2
  Yarn: 0.27.5
  npm: 5.3.0
  Watchman: Not Found
  Xcode: N/A
  Android Studio: Version  3.0.0.0 AI-171.4443003

Packages: (wanted => installed)
  react: 16.0.0 => 16.0.0
  react-native: 0.51.0 => 0.51.0

  Target Platform: Android (7.1.1)

Steps to Reproduce

<View style={{ width: 32, height: 32, borderRadius: 16, borderWidth: 2, borderColor: '#2196f3', }}/>

Behavior

expected like ART.Shape at left, but actual View behabior at right

antialias

Ran Commands Locked

All 5 comments

Hello @numez, can you elaborate more on this problem?
What device are you using?

Ofc @gedeagas! I've tested on

  • Nexus 5 (Android 6.0.1)
  • Samsung Galaxy S6 edge + (Android 7.0)
  • AVD emulator (Android 7.1.1)

background edge is smooth with backgroundColor (AntiAliasing enabled).
But with borderWidth property border edge became jagged.

bg_border

Can reproduce on Samsung S8+, Android 7.0, RN 0.52.1

I think this issue is related to
https://github.com/facebook/react-native/issues/17267 by @dannycochran

Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

How to Contribute • What to Expect from Maintainers

Was this page helpful?
0 / 5 - 0 ratings