-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image doesn't support local animated webp #15543
Comments
Looks like this library https://github.com/image-size/image-size might not support animated webp. That library needs to be updated first. |
If someone could at least update the docs, because the seem to be a lie now http://facebook.github.io/react-native/releases/0.47/docs/image.html#gif-and-webp-support-on-android |
This looks the same as #13102. I can reproduce the error with React Native 0.47, but it works with v0.48.0-rc.1 which has a newer version of image-size. #13102 (comment) |
@facebook-github-bot no-template |
1 similar comment
@facebook-github-bot no-template |
Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more. |
Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more. |
Issue has been fixed. See my last comment. |
Environment
react-native -v
: 0.47.1node -v
: v8.3.0npm -v
: 5.3.0Build tools: Android Studio
React Code:
it not works:
it works :
<Image source={{uri:'https://im.ezgif.com/tmp/ezgif-1-cbfa2c9256.webp'}} style={{width: 120, height:120 }}/>
Android:
Error Log:
TypeError: unsupported file type
at lookup (/code/workspace/dudu/node_modules/image-size/lib/index.js:35:9)
at /code/workspace/dudu/node_modules/image-size/lib/index.js:93:22
at /code/workspace/dudu/node_modules/image-size/lib/index.js:50:9
at /code/workspace/dudu/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:135:15)
The text was updated successfully, but these errors were encountered: