Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

borderBottomLeftRadius et. al. produce blurry corners on iOS #8577

Closed
joe-noel-dev opened this issue Jul 5, 2016 · 9 comments
Closed

borderBottomLeftRadius et. al. produce blurry corners on iOS #8577

joe-noel-dev opened this issue Jul 5, 2016 · 9 comments
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@joe-noel-dev
Copy link

It seems that when specifying some, but not all of borderBottomLeftRadius, borderBottomRightRadius, borderTopLeftRadius and borderTopRightRadius, you can end up with some strange effects in the other corners.

screen shot 2016-07-05 at 17 06 32

See this rnplay or code snippet:

'use strict';

var React = require('react-native');
var {
  AppRegistry,
  StyleSheet,
  Text,
  View,
} = React;

var SampleApp = React.createClass({
  render: function() {
    return (
      <View style={styles.container}>
        <View style={styles.box} />
      </View>
    );
  }
});

var styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: 'white',
  },
  box: {    
    borderWidth: 1,
    borderColor: 'black',

    width: 150,
    height: 150,

    borderBottomLeftRadius: 10,
  },
});

AppRegistry.registerComponent('SampleApp', () => SampleApp);

react-native 0.28.0

Seems to occur on iOS, but not on Android

Am I doing something wrong, or is this a bug?

@janicduplessis
Copy link
Contributor

janicduplessis commented Jul 5, 2016

Looks like a bug, I actually hit this problem too. I think it only happens on devices with a low screen density.

@janicduplessis janicduplessis added the Platform: iOS iOS applications. label Jul 5, 2016
@rclai
Copy link
Contributor

rclai commented Jul 6, 2016

For me this happens on a real device but doesn't happen on the simulator.

@manicakes
Copy link

I can't reproduce this (tried Simulator and a couple real devices).

@janicduplessis
Copy link
Contributor

Seems to only happen on non retina devices, I can reproduce it using the original code sample on an iPod Touch. I can also reproduce the bug by setting the scale of the simulator to 50%.

@mrpp01
Copy link

mrpp01 commented Nov 29, 2016

I tested this, and it only appears when the screen's resolution is too low. Is this significant? I think most device from now on will have high resolution, so this wouldn't be an issue.

@fiattt
Copy link

fiattt commented Dec 6, 2016

for me happen on real device: iphone 6 plus

ps. react-native:0.34.0

@frontendloader
Copy link

frontendloader commented Feb 10, 2017

Merge #10823 and #11897 into this one?

Minimal reproduction on RNPlay: https://rnplay.org/apps/Cl4tGg

Am seeing this as of react-native version 0.40.

@xeonwell
Copy link

xeonwell commented Jun 9, 2017

happen on react-native 0.42.3 & iphone6 plus

@hramos
Copy link
Contributor

hramos commented Aug 16, 2017

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!

If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

@hramos hramos added the Icebox label Aug 16, 2017
@hramos hramos closed this as completed Aug 16, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Aug 16, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 16, 2018
react-one pushed a commit to react-one/react-native that referenced this issue Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

10 participants