Skip to content

Commit 93041d5

Browse files
Android: default scale to CENTER_CROP
1 parent cc8a81d commit 93041d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/reactnativecomponent/splashscreen/RCTSplashScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected static Activity getActivity() {
3232
}
3333

3434
public static void openSplashScreen(Activity activity) {
35-
openSplashScreen(activity, false, ImageView.ScaleType.FIT_XY);
35+
openSplashScreen(activity, false, ImageView.ScaleType.CENTER_CROP);
3636
}
3737

3838
public static void openSplashScreen(final Activity activity, final boolean isFullScreen, final ImageView.ScaleType scaleType) {

0 commit comments

Comments
 (0)