Thanasis1101 / react-native-gif-search

An easy-to-use, highly customizable react-native package for searching and selecting from a list of gifs and/or stickers using the Tenor and/or the Giphy API
ISC License
34 stars 14 forks source link

TypeError: undefined is not an object (evaluating 'item.images[_this3.giphyGifPreview].url')] #12

Open spectrox0 opened 3 years ago

spectrox0 commented 3 years ago

sometimes this error occurs to me, is there any way to avoid it?

Thanasis1101 commented 3 years ago

@spectrox0 Oh, it seems like some gifs do not have the requested quality available. I should fix this by providing the closest quality available, or by not showing these gifs. It would really help if you could provide me the properties you use inside GifSearch component and a scenario in which you get this error (what text you search for etc.), so I can reproduce it.

What you could do until I update the package with a fix for this bug, is try some other value in the previewGifQuality property (low, medium or high) and see if the same problem still occurs.