react-simple-star-rating icon indicating copy to clipboard operation
react-simple-star-rating copied to clipboard

Ratings broken!

Open jeremyrajan opened this issue 2 years ago • 1 comments

Thanks for lib :)

Just trying to implement it using floating values for 5 star rating component. Doesnt seem to work. It weird that for 5 it somehow is taking as 0.5 or less (if you look closely)

<Rating
                  className="flex"
                  ratingValue={5}
                  readonly
                  transition
                  size={20}
                  allowHalfIcon
                  fillColorArray={[
                    "#f17a45",
                    "#f19745",
                    "#f1a545",
                    "#f1b345",
                    "#f1d045",
                  ]}
                />
image

Not sure, what I am doing wrong

jeremyrajan avatar Oct 01 '22 06:10 jeremyrajan

Check this codesandbox it may help you . Also, please update to the latest version to avoid any possible bugs.

Also, you may need to use initialValue prop. Check this example

Let me know if still you need any help.

Thank you.

awran5 avatar Oct 03 '22 12:10 awran5