Closed schystz closed 5 years ago
Simply applied a border radius to the Image
and that gets the result I expected:
<Image
style={{ width: 100, height: 100, borderRadius: 50 }}
source={{ uri: this.props.store.user. picture }}
/>
When setting the
image
prop ofAvatar
, the image is not masked to the circle background. I am expecting something like this:...but I am getting this instead:
Below is my the code for the above screenshot.
<Avatar style={{ container: { alignSelf: 'center' } }} image={this.avatarImage()} size={100} />
Is the masking not supported at the moment? Otherwise, can you please let me know how to achieve it? Thank you!