alexbrillant / react-native-deck-swiper

tinder like react-native deck swiper
ISC License
1.55k stars 461 forks source link

Using Elements Tiles as Cards with an ImageSRC that's a URI causes image re-render #303

Open mylesmmurphy opened 4 years ago

mylesmmurphy commented 4 years ago

Hello Thank you so much for this package! It works wonderfully well and provides everything We've been looking for. However, when using Elements Tiles and having the background image set to a URI, the image is constantly re-rendered, causing the background to flash grey whenever a card is moved. This only happens (the re-render) during certain triggers, such as when the card crosses the threshold it will re-render (causing the card to flash grey as it reloads the URI image), or when the next card is being pushed to the top, it will re-render even though the image has been loaded on the tile already. I have assuming this occurs due to the deck swiper (as opposed to the Elements Tile) because it occurs on particular deck triggers, however, I could be mistaken. Please let me know if you know anything!

cortezdev99 commented 4 years ago

I'm also having this issue