question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: Border radius renders in a blurred / choppy way in 0.51.0

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment: OS: macOS Sierra 10.12.6 Node: 6.11.4 Yarn: Not Found npm: 3.10.10 Watchman: 4.9.0 Xcode: Xcode 8.3.3 Build version 8E3004b Android Studio: Not Found

Packages: (wanted => installed) react: 16.0.0-beta.5 => 16.0.0-beta.5 react-native: 0.53.0 => 0.53.0

Target Platform: Android (22)

Steps to Reproduce

Create a simple view:

export default class App extends Component {
  render() {
    return (
      <View style={styles.background}>
        <View style={styles.container}>
          <Text>Welcome to React Native!</Text>
        </View>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  background: {
    backgroundColor: 'purple',
    flex: 1
  },
  container: {
    position: 'absolute',
    left: 100,
    top: 100,
    width: 200,
    height: 100,
    backgroundColor: 'orange',
    borderWidth: 2,
    borderColor: 'orange',
    borderRadius: 50,
    justifyContent: 'center',
    alignItems: 'center'
  }
});

Expected Behavior

I would expect that the border does not render in a strange and pixelated way. Previously in react-native 0.49.5, the exact same code would render like so:

screen shot 2017-12-18 at 5 16 14 pm

Actual Behavior

In react-native 0.53.0, that same code renders this blurry border:

screen shot 2017-12-18 at 5 15 54 pm

Reproducible Demo

The code snippet above compiles and should be sufficient to reproduce this problem.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:53
  • Comments:56 (29 by maintainers)

github_iconTop GitHub Comments

35reactions
react-native-botcommented, Feb 24, 2018

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 ContributeWhat to Expect from Maintainers

25reactions
sandropoluancommented, Feb 24, 2018

@react-native-bot why is this closed? I’m use v0.53.0 and and still having this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

backdrop-filter blur stops working as soon as border-radius is ...
When border-radius: 30px; is removed from the class that has backdrop-filter: blur(8px); in it, the DIV now appears with the default sharp ...
Read more >
border-radius - CSS-Tricks
This is calculated by dividing the pixel radius by the width and the height. The corner will be perfectly rounded and stay proportional...
Read more >
Rounded Corners on Images | IANR Media | Nebraska
The CSS property border-radius adds rounded corners on images. You can round all of the image's corners or just select corners, vary the...
Read more >
Adjust corner radius and smoothing – Figma Help Center
By default, Figma applies corner radius to the entire shape. There are a few ways to adjust the corner radius for a vector...
Read more >
CSS border-radius property - W3Schools
More Examples ; Set rounded corners for an element with a background color: #rcorners1 · background ; Set rounded corners for an element...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found