Monte9 / react-native-ratings

Tap and Swipe Ratings component for React Native.
https://expo.io/@monte9/react-native-ratings
MIT License
907 stars 196 forks source link

Default Rating 0 doesn't work #148

Closed khushal87 closed 3 years ago

khushal87 commented 3 years ago

As a user, I want when my component loads any of the stars are not filled by default. Or if we have an option to do so.

daniloitj commented 3 years ago

Same problem

daniloitj commented 3 years ago

In TapRAting.js line 100 chage: if (defaultRating) to if (defaultRating!=null) (https://github.com/Monte9/react-native-ratings/blob/master/src/TapRating.tsx)

khushal87 commented 3 years ago

I have already fixed it @daniloitj You will see this fixed soon with an update