bviebahn/react-native-star-rating-widget

Supporting "gray" start instead of "outlined" star for empty star

Closed this issue · 6 comments

zirho commented

Hi,
I am enjoying using the library a lot.
Is there a way to replace a shape of empty star?

image

Or I could try to make PR for that.

Thanks!

Hi,

yes I think that would be useful. I would suggest adding a StarComponent prop with a type something like this:

StarComponent?: (props: { type: 'full' | 'half' | 'empty'; size: number; color: string }) => React.ReactNode

What do you think?

zirho commented

That sounds like a robust solution!

Alright, let me know if you would lilke to work on it. Otherwise I can probably find some time tomorrow.

zirho commented

Sorry I am spending too much time debugging some ambiguous RN issue.
I will come back once I get it fixed.
It would be awesome if you can get to it.

Gnite!

Ok sure, good luck with that!

I just published a new version 1.4.1 which includes this change. Let me know if something doesn't work as expected.