Open SashaStojanovic opened 6 years ago
Same Issue, did you found any Fixes?
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>
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"?>