Artifacts on View with borderRadius on only 2 corners on iOS
See original GitHub issueDescription
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
Solution
Don’t know yet
Additional Information
- React Native version: 0.36.1
- Platform: iOS
- Operating System: MacOS
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:43 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
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.
I did create PR #19451 It would be great if some people can confirm if it is fixed.