xerdnu / react-native-blasted-image

A simple yet powerful image component for React Native, powered by Glide and SDWebImage.
MIT License
90 stars 10 forks source link

[Android]Add APNG support #7

Closed boboxiaodd closed 4 weeks ago

boboxiaodd commented 8 months ago

i add dependencies to build.gradle like react-native-fast-image , but not work.

implementation 'com.github.penfeizhou.android.animation:glide-plugin:2.28.0
boboxiaodd commented 8 months ago

I have found a solution add dependenc:

implementation 'com.github.penfeizhou.android.animation:glide-plugin:2.28.0

create a file name BlastedImageGlideModule.java

package com.xerdnu.blastedimage;

import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.module.AppGlideModule;

@GlideModule
public final class BlastedImageGlideModule extends AppGlideModule {
}
boboxiaodd commented 8 months ago

by the way , this plugin support awebp,apng,gif,avif