Skip to content

Commit

Permalink
Fix default resizeMode on Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVann committed Jan 31, 2018
1 parent b36b3a4 commit d4210c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static Priority priority(ReadableMap source) {
}};

public static ScaleType scaleType(String resizeMode) {
if (resizeMode == null) resizeMode = "contain";
if (resizeMode == null) resizeMode = "cover";
final ImageView.ScaleType scaleType = REACT_RESIZE_MODE_MAP.get(resizeMode);
return scaleType;
}
Expand Down

0 comments on commit d4210c0

Please sign in to comment.