中文文档: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'}

更多相关文章

  1. Android 中文 API(123) ―― AbsListView(一)
  2. android api 中文 (73)―― AdapterView
  3. Android 中文API (70) ―― BluetoothDevice[蓝牙]
  4. Android读取JSON格式数据
  5. android 设置中文字体。。。。
  6. Android 3.0 r1 API中文文档(108) ―― ExpandableListAdapter
  7. 解决 Android 下载中文文件名问题
  8. android rle格式开机logo制作
  9. Android 中文 API (90) ―― WindowManager

随机推荐

  1. android 系统音乐播放器分析
  2. Xamarin android沉浸式状态栏
  3. Android学习06-----布局管理器
  4. 利用android的Debug调试分析源码
  5. Android(安卓)Service中的startService或
  6. Android控件之TextView全解析
  7. Java游戏相关
  8. Android架构组件—ViewModel
  9. Android在智能终端领域的关键技术专题讲
  10. 处女男学Android(十二)---Android 菜单(Menu