crazycodeboy / react-native-splash-screen

A splash screen for react-native, hide when application loaded ,it works on iOS and Android.
MIT License
5.59k stars 1.09k forks source link

Splash Screen image huge on lower versions #301

Open SashaStojanovic opened 6 years ago

SashaStojanovic commented 6 years ago

I am successfully using react-native-splash-screen and all is working well. However on lower versions of Android (I am testing with 4.1), the image I am using on my slashscreen seems stretched to fill the width and height of the device.

Has anyone experienced this or have any ideas on how to sort it out? My splashscreen drawable is below. The width and height dimensions don't seem to be used taken into account.

`<?xml version="1.0" encoding="utf-8"?>

`
Maskedman99 commented 4 years ago

Same Issue, did you found any Fixes?

bhirmbani commented 4 years ago

Im experiencing this issue on android J3 device. I fixed it after change my xml file to:

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

    <item
        android:drawable="@color/splashscreen_bg"/>

    <item
        android:width="100dp"
        android:height="40dp"
        android:gravity="center">
    <bitmap
        android:gravity="center"
        android:src="@mipmap/logo_lifepack_2"/>
    </item>

</layer-list>