1、在android/app/build.gradle的dependencies中添加
// 如果你需要支持GIF动图
implementation 'com.facebook.fresco:animated-gif:2.0.0'
// 如果你需要支持WebP格式,包括WebP动图
implementation 'com.facebook.fresco:animated-webp:2.1.0'
implementation 'com.facebook.fresco:webpsupport:2.0.0'
// 如果只需要支持WebP格式而不需要动图
implementation 'com.facebook.fresco:webpsupport:2.0.0'
rn 安卓端支持gif和webp格式图片
猜你喜欢
转载自blog.csdn.net/weixin_43294560/article/details/108363394
今日推荐
周排行