react-native-scalable-image icon indicating copy to clipboard operation
react-native-scalable-image copied to clipboard

Black background on Images when using borderRadius property in Styles

Open AbdullahQureshi1080 opened this issue 3 years ago • 0 comments

Hi, I have been using react-native-scalable-image for my images but there is a weird black background when I am providing both width and height to the ScaleableComponent.

Using react-native 0.64.2 "react-native-scalable-image": "^1.1.0",

 <ScalableImage
   source={{
             uri: item.ordered_items[0].image_url,
    }}
    width={widthScaleSub(64) / 2}
    height={heightScale(140)}
    style={[
      styles.listCardFirstImage,
     ]}
  resizeMode="contain"
    />

Styles

 listCardFirstImage: {
      width: widthScaleSub(64) / 2,
      height: heightScale(140),  
      backgroundColor: color.bgDark,
      borderRadius: heightScale(10),
   },
    

Note: When removing the borderRadius the black background is gone, what is happening in the background.

Some context or help would be awesome.

AbdullahQureshi1080 avatar Jun 09 '22 05:06 AbdullahQureshi1080