Monte9 / react-native-ratings

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

AirbnbRating size and animation #151

Open minafa96 opened 3 years ago

minafa96 commented 3 years ago

I'm using 'AirbnbRating' in android 9 and I see no animation when choosing a star.

also, I have changed the size to 32, default selected stars are fine but when selecting another star its size changes to the default size.

any idea why?

mraffiramdhani commented 3 years ago

+1

Andriiklymiuk commented 3 years ago

+1

hstorz commented 3 years ago

It works until version 7.6.1. In later versions the press animation is broken in AirbnbRating. Initially the stars are shown with a small icon and after pressing a star it is shown with a big icon and stays like that.

Sephaq commented 3 years ago

It works until version 7.6.1. In later versions the press animation is broken in AirbnbRating. Initially the stars are shown with a small icon and after pressing a star it is shown with a big icon and stays like that.

I'm using this library as part of React-native-elements and I can confirm this issue on 8.0.4

MagnasiePro commented 2 years ago

+1

kimho commented 2 years ago

+1

daveyjones commented 2 years ago

Downgrading to 7.6.1 fixes the start sizing issues for me.

DonRyu commented 2 years ago

7.6.1 fix the problem but the props are very different from 8.1.0.

pierregambaud commented 2 years ago

Downgrading to 7.6.1 fixes the start sizing issues for me.

Thanks for your workaround, as the bug is still in 8.1.0 😬

reddigitall commented 1 year ago

You can use a custom option:

<Rating type="custom" ratingImage={seeker} ratingColor="#FF8200" ratingBackgroundColor="#E0E2EC" ratingCount={30} imageSize={10} jumpValue={3} // showRating={true} // tintColor={'blue'} onFinishRating={this.ratingCompleted} style={appStyles.rating} />

Screen Shot 2023-05-29 at 11 52 09 AM