mirror of
https://github.com/status-im/react-native.git
synced 2025-01-30 19:25:11 +00:00
c8f39c3d2c
Summary: In RN we cache image data after loading/downloading an image, however the data we store is the compressed image data, and we decode this asynchronously each time it is displayed. This can lead to a slight flicker when reloading image components because the decoded image is discarded and then re-decoded. This diff adds a small (5MB) cache for decoded images so that images that are currently on screen shouldn't flicker any more if the component is reloaded. Reviewed By: bnham Differential Revision: D3305161 fbshipit-source-id: 9969012f576784dd6f37d9386cbced2df00c3e07