When a <View /> component uses backgroundColor and borderRadius, the background color is still visible over the edges of the border.
Screenshot:

Example code:
var MyComponent = React.createClass({
render() {
return <View style={styles.example} />
}
});
var styles = StyleSheet.create({
example: {
backgroundColor: 'white',
borderRadius: 16,
borderWidth: 1,
borderColor: 'black'
}
});
Hi there! Try setting overflow: hidden, does that fix it?
@frostney - does this still occur on 0.4.0 for you?

I can only reproduce this when I have some other item inside, eg: overflow: hidden as mentioned above to fix that issue.
overflow: hidden does fix it for me. Thank you.
I hope it's ok that I'm closing this issue.
Edit: The code example is more stripped down than I intended it to be. This issue occured for me on views (with borderRadius and backgroundColor) that had texts and views as its children (those were without background color or borderRadius) and when I created the code example I forgot to copy over the hierarchy from the production code to the example code while making a screenshot from the production code. Sorry about that.
@frostney - no problem, glad it helped! :smile:
overflow: 'hidden' does fix it for me too.
Thats not the expected css behaviour. Maybe we should write it in the docs.
Greetings
I believe this now works correctly.
I still have this issue but only with absolutely positioned views. The overflow: 'hidden' works for me as well.
It is still an issue but overflow: 'hidden' works. Thanks.
The issue with overflow is you can't use shadows anymore as they are considered as overflowing elements.
as @uandco mentioned, the overflow cannot be used together with shadow properties.. What is the workaround here?
Most helpful comment
Hi there! Try setting
overflow: hidden, does that fix it?