React-native-image-viewer: How to support webp format image in iOS?

Created on 8 Mar 2019  ·  2Comments  ·  Source: ascoders/react-native-image-viewer

.webp not work in iOS, How to solve?Thanks!

Most helpful comment

Image.getSize() do not support with .webp, and cause read image.width and height error,
so, precompute width and height , add them in
{ imageUrls: [{ url: webp, width: width, height: height } }]

All 2 comments

same issue here

Image.getSize() do not support with .webp, and cause read image.width and height error,
so, precompute width and height , add them in
{ imageUrls: [{ url: webp, width: width, height: height } }]

Was this page helpful?
0 / 5 - 0 ratings