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

Stars Not Being Rendered When Offline #170

Open Agent57 opened 3 years ago

Agent57 commented 3 years ago

I'm developing an app that has to cope with very poor network connectivity. I've noticed that if there is no internet connection, the stars are not rendered correctly.

I was able to reproduce this using the v8.1.0 demo application from the repo, built with expo 42.0.1 on Mac OS.

image

Any advice on how to fix this would be very much appreciated, thank you.

chhornponleu commented 2 years ago

I got same issue when update via codepush

adrienfloor commented 2 years ago

Same with a normal internet connection on iOS simu ... 😢

Devoagency commented 2 years ago

I'm having this same issue on a normal internet connection with the latest version. iOS works fine, but on Android the rating is just a block in Callouts

nachoSource commented 2 years ago

I'm having this issue with normal connection too. In android it works fine, but in iOS > 13 that odd block is being displayed instead.

Could this be related with iOS images problem? I've quickly solved that replacing Image components with FastImage, but I'm affraid that weird workaround cannot be used here bc StarRating only needs the image url.

riordanpawley commented 2 years ago

Anyone figure out a workaround for this issue? I have this bug on android. I'm not sure if its relevant but since codepush was mentioned I'm using expo-updates.

Anael-dev commented 2 years ago

same issue on Android, stars are not rendered also. Any solution?

nachoSource commented 2 years ago

I could not find a workaround to keep using this component, but I ended up using this one which is very very similar, only differing in that you have to tap the stars instead of swaping. I hope this can be useful for you