React-native-fast-image: borderTopLeftRadius not working on android

Created on 12 Jun 2018  路  6Comments  路  Source: DylanVann/react-native-fast-image

Awesome component guys! it's amazing how fast it is!

I do have a problem where borderRadius: 10 works and all sides are rounded but using border radius on single corner is ignored.
e.g. borderTopLeftRadius: 10 doesn't work.
I'm using:
RNFI: 4.0.14
RN 0.50.0

Most helpful comment

overflow: 'hidden' is working for me , you can use overflow: 'hidden' like this

<View style={{ width: '100%', height: '100%', backgroundColor: '#CACAF9', borderTopLeftRadius: 20, borderTopRightRadius: 20, alignItems: 'center', justifyContent: 'center',overflow: 'hidden' }} >
 <Image style={styles.cellViewImage} source={{ uri: item.image }} ></Image>
</View>

All 6 comments

I think [email protected] must not support it.

same here,

"react-native-fast-image": "4.0.14"
"react-native": "0.55.4"

Is it possible that you're use case falls back to Image? Is it a local image or a remote image?

If it's a local image then the version of RNFI you're using falls back to Image, which I don't think supports multiple border radii properly.

I'm hoping to do a new major release this weekend which will fix this.

Hii Dylan,

I used a remote image.

I did not get to test using this property in the style of the object.

I'll check on Monday the tests on Android and IOS and return, okay?

I'm pretty sure I know exactly what you're issue is. If I manage to finish the update then it will fix it.

You can workaround your issue by using a wrapping View with overflow=hidden if you need something quickly.

overflow: 'hidden' is working for me , you can use overflow: 'hidden' like this

<View style={{ width: '100%', height: '100%', backgroundColor: '#CACAF9', borderTopLeftRadius: 20, borderTopRightRadius: 20, alignItems: 'center', justifyContent: 'center',overflow: 'hidden' }} >
 <Image style={styles.cellViewImage} source={{ uri: item.image }} ></Image>
</View>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

NgocNamFNT picture NgocNamFNT  路  3Comments

baba43 picture baba43  路  3Comments

mschipperheyn picture mschipperheyn  路  3Comments

banphlet picture banphlet  路  3Comments

skleest picture skleest  路  3Comments