diff --git a/releases/next/docs/image.html b/releases/next/docs/image.html index 45fa05b566b..d9f03622a45 100644 --- a/releases/next/docs/image.html +++ b/releases/next/docs/image.html @@ -54,17 +54,17 @@ as well as one from network and even from data provided in the 'data: () => DisplayAnImageWithStyle );

GIF and WebP support on Android #

When building your own native code, GIF and WebP are not supported by default on Android.

You will need to add some optional modules in android/app/build.gradle, depending on the needs of your app.

dependencies { // If your app supports Android versions before Ice Cream Sandwich (API level 14) - compile 'com.facebook.fresco:animated-base-support:1.0.1' + compile 'com.facebook.fresco:animated-base-support:1.3.0' // For animated GIF support - compile 'com.facebook.fresco:animated-gif:1.0.1' + compile 'com.facebook.fresco:animated-gif:1.3.0' // For WebP support, including animated WebP - compile 'com.facebook.fresco:animated-webp:1.0.1' - compile 'com.facebook.fresco:webpsupport:1.0.1' + compile 'com.facebook.fresco:animated-webp:1.3.0' + compile 'com.facebook.fresco:webpsupport:1.3.0' // For WebP support, without animations - compile 'com.facebook.fresco:webpsupport:1.0.1' + compile 'com.facebook.fresco:webpsupport:1.3.0' }

Also, if you use GIF with ProGuard, you will need to add this rule in proguard-rules.pro :

-keep class com.facebook.imagepipeline.animated.factory.AnimatedFactoryImpl { public AnimatedFactoryImpl(com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory, com.facebook.imagepipeline.core.ExecutorSupplier); }

Props #

blurRadius?: number #

blurRadius: the blur radius of the blur filter added to the image

onError?: function #

Invoked on load error with {nativeEvent: {error}}.

onLayout?: function #

Invoked on mount and layout changes with