react-native-ratings icon indicating copy to clipboard operation
react-native-ratings copied to clipboard

When custom icon used the fill fills the entire block

Open Terceramayor opened this issue 3 years ago • 2 comments

When using a custom png icon, the rating color doesn't just fill the inside of the icon but the entire icon block:

<Rating type="custom" ratingImage={starIcon} ratingColor={'rgb(200,0,200)'} ratingCount={5} imageSize={16} showRating={false} tintColor={'rgb(0,100,200)'} readonly={false} startingValue={1.35} />

image

Terceramayor avatar Oct 21 '21 09:10 Terceramayor

Just faced this issue as well...

Issue is the default star icon is actually a yellow outline, transparent content and white background outside.

So you need to add a white background to your image.

star

lukasgjetting avatar Jun 14 '22 12:06 lukasgjetting

I am also facing this

rajpootathar avatar Apr 05 '24 16:04 rajpootathar