mirror of
https://github.com/status-im/react-native.git
synced 2025-02-20 13:18:07 +00:00
resizeMode applies to Image.defaultSource (#22216)
Summary: resizeMode applies to Image.defaultSource, because depending on screen resolution sometimes we see padding around defaultSource image while source loading. Now we can control scale of both source and defaultSource. Changelog: ---------- [Android] [Fixed] - Image.resizeMode will apply to defaultSource, enhanced user experience. Previously, resizeMode didn't applied to defaultSource, therefore depending on screen resolution sometimes we see padding around defaultSource image while source loading. Pull Request resolved: https://github.com/facebook/react-native/pull/22216 Differential Revision: D13088220 Pulled By: mdvacca fbshipit-source-id: 92c66cf6228f3b7666b9ef2404d034f0005b5234
This commit is contained in:
parent
271ace9e91
commit
673ef39561
@ -439,7 +439,7 @@ public class ReactImageView extends GenericDraweeView {
|
||||
hierarchy.setActualImageScaleType(mScaleType);
|
||||
|
||||
if (mDefaultImageDrawable != null) {
|
||||
hierarchy.setPlaceholderImage(mDefaultImageDrawable, ScalingUtils.ScaleType.CENTER);
|
||||
hierarchy.setPlaceholderImage(mDefaultImageDrawable, mScaleType);
|
||||
}
|
||||
|
||||
if (mLoadingImageDrawable != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user