vovkasm / react-native-web-image

An image component for react-native with persistent disk and memory caching.
MIT License
146 stars 25 forks source link

Does It Work With Webp on IOS? #10

Open alicankoker opened 7 years ago

alicankoker commented 7 years ago

I don't understand this one. When I am using an uri to a png, it perfectly works but when I use a webp uri, there is nothing being rendered on IOS. On SDWebImage documentation, it says it runs with webp but as a subspec and it needs to be specified. So at this point, I am confused. The result shows me that webp doesn't work with this module. Can I get the confirmation please?

vovkasm commented 7 years ago

I did not do any special to enable webp. To make this work, your need enable addition code in SDWebImage. If you have some ideas how to do this with RN module so that it can be optionally enabled/disabled, I will be happy to implement this. Patches welcomed as well.