diff --git a/image-source/image-source-native.android.ts b/image-source/image-source-native.android.ts index dd0cbbfac..53919ed2a 100644 --- a/image-source/image-source-native.android.ts +++ b/image-source/image-source-native.android.ts @@ -6,7 +6,11 @@ export function fromResource(name: string) { if (res) { var identifier: number = res.getIdentifier(name, 'drawable', androidApp.packageName); if (0 < identifier) { - return android.graphics.BitmapFactory.decodeResource(res, identifier); + // Load BitmapDrawable with getDrawable to make use of Android internal caching + var bitmapDrawable = res.getDrawable(identifier); + if (bitmapDrawable && bitmapDrawable.getBitmap) { + return bitmapDrawable.getBitmap(); + } } }