不支持gif动态图片
16lz
2021-01-23
中文文档:https://reactnative.cn/docs/image/
在 Android 上支持 GIF 和 WebP 格式图片
默认情况下 Android 是不支持 GIF 和 WebP 格式的。你需要在android/app/build.gradle
文件中根据需要手动添加以下模块:
dependencies { // 如果你需要支持Android4.0(API level 14)之前的版本 implementation 'com.facebook.fresco:animated-base-support:1.10.0' // 如果你需要支持GIF动图 implementation 'com.facebook.fresco:animated-gif:1.12.0' // 如果你需要支持WebP格式,包括WebP动图 implementation 'com.facebook.fresco:animated-webp:1.10.0' implementation 'com.facebook.fresco:webpsupport:1.10.0' // 如果只需要支持WebP格式而不需要动图 implementation 'com.facebook.fresco:webpsupport:1.10.0'}
更多相关文章
- Android 中文 API(123) ―― AbsListView(一)
- android api 中文 (73)―― AdapterView
- Android 中文API (70) ―― BluetoothDevice[蓝牙]
- Android读取JSON格式数据
- android 设置中文字体。。。。
- Android 3.0 r1 API中文文档(108) ―― ExpandableListAdapter
- 解决 Android 下载中文文件名问题
- android rle格式开机logo制作
- Android 中文 API (90) ―― WindowManager