To enable downsampling feature, besides the settings for resizing, you will have to add a custom setting when initializing Fresco in the launch event.
if (application.android) {
application.on("launch", () => {
// enable donwsampling
fresco.initialize({ isDownsampleEnabled: true });
// if not needed, you can initialize Fresco in the same manner as it was
// fresco.initialize();
});
}
If the value isDownsampleEnabled is set to false or not set, downsampling feature will not be activated.
This is an implementation of #70 . Please check here about the difference between the two features.
To enable resizing feature, you will have to set
decodeWidth
,decodeHeight
attributes toFrescoDrawee
.To enable downsampling feature, besides the settings for resizing, you will have to add a custom setting when initializing Fresco in the launch event.
If the value
isDownsampleEnabled
is set tofalse
or not set, downsampling feature will not be activated.