kfiroo / react-native-cached-image

CachedImage component for react-native
MIT License
938 stars 470 forks source link

Memory issues after upgrading react/react-native version #157

Open bitshadow opened 5 years ago

bitshadow commented 5 years ago

Looks like after upgrading the react-native and react versions app started crashing because of the memory leaks. I did the profiling which shows something like this. I am using around 12+ images in the app.

Screenshot 2019-03-15 at 3 34 58 PM

In older version of react/react-native it seems to work fine and occupies around ~11Mb of data.

    "react": "16.3.1",
    "react-native": "0.55.3",

This is how it looked before. https://medium.freecodecamp.org/finding-memory-leaks-react-native-app-ios-46e6eeb50c8c

ammoradi commented 5 years ago

@bitshadow I read your article. exactly we have the same issue with react-native-fast-image. based on your issue here, is this library a good alternative choice to use in RN 0.57 ?

bumpingChris commented 5 years ago

We're also experiencing the same memory issue: Using RN 0.58.6

With cached-image: Screen Shot 2019-06-20 at 11 13 00 AM

Without cached-image: Screen Shot 2019-06-20 at 3 23 43 PM

Any update on this?

wumke commented 4 years ago

Following this since I wanted to update in the coming months...