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.

Artifacts on View with borderRadius on only 2 corners on iOS

See original GitHub issue

Description

I need a couple of Views with border radius only on the top or bottom corners, to use as container for TextInputs (its a email/password form).

Reproduction

Using this code:

    // style
    inputExample: {
        borderColor: '#9b9b9b',
        backgroundColor: 'white',
        borderWidth: 1,
        borderStyle: 'solid',
        height: 50,
    },
    inputTop: {
        borderTopLeftRadius: 6,
        borderTopRightRadius: 6,
        borderBottomLeftRadius: 0,
        borderBottomRightRadius: 0,
    },
    inputBottom: {
        borderTopLeftRadius: 0,
        borderTopRightRadius: 0,
        borderBottomLeftRadius: 6,
        borderBottomRightRadius: 6,
        marginBottom: 60
    },
// render
    <View style={[style.inputExample, style.inputTop]}>
    </View>
    <View style={[style.inputExample, style.inputBottom]}>
    </View>

The result is as expected, but with artifacts on the corners with radius:0

screen shot 2017-01-13 at 7 30 12 pm

Solution

Don’t know yet

Additional Information

  • React Native version: 0.36.1
  • Platform: iOS
  • Operating System: MacOS

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:43 (13 by maintainers)

github_iconTop GitHub Comments

15reactions
hramoscommented, Jul 21, 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.

4reactions
mattijsfcommented, Jun 6, 2018

I did create PR #19451 It would be great if some people can confirm if it is fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Artifacts on View with borderRadius on only 2 corners on iOS
I need a couple of Views with border radius only on the top or bottom corners, to use as container for TextInputs (its...
Read more >
Strange artifacts when using UIButton with corner radius set
As you can see, there are strange artifacts appearing around the rounded corners of the button. Are there any way to get rid...
Read more >
border-radius - CSS: Cascading Style Sheets - MDN Web Docs
The border-radius CSS property rounds the corners of an element's outer border ... It is used only in the two- and three-value syntaxes....
Read more >
The Shapes of React Native - Code Daily
One note to mention about border radius is that it doesn't work like the web. So if you go more than 50% you'll...
Read more >
Design Basics in Swift - Rounded Corners and Shadows
We will talk about shadowoffset, cgcolor swift, ios rounded corners, cgcolor swift and xcode button border. I will teach you the shadowpath, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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