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

Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method #176

Open reyhanadp opened 2 years ago

reyhanadp commented 2 years ago

Hi, I have got the following warning : Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. in SwipeRating

This is my code : <Rating readonly={true} type="star" ratingCount={1} startingValue={1} imageSize={15} />

What's wrong with my code?

Thank you

CoryWritesCode commented 2 years ago

seeing same issue on my app

AhmedRedaDev commented 2 years ago

seeing same issue on my app

PavelSuchkov commented 1 year ago

I have the same issue too. Does anybody have the any solve?

Anand013 commented 9 months ago

I used below npm for rating and this is working fine for me !

https://www.npmjs.com/package/react-native-custom-star-rating