bamlab/generator-rn-toolbox

splash screen size issue in android

imadarif opened this issue ยท 6 comments

i prepare a splash.png file with 2732*2732. i run the command to generate splash screen for both ios and android. for ios is perfect but for android its showing color on background image was not fit properly

+1 the same

+1 the same

duplicate of #172 ?

found the solution: replace in ./android/app/src/main/res/drawable/launch_screen_bitmap.xml value of android:gravity from center to fill

@russ666 It fills, yes, but it resizes image incorrectly if display and image have different ratio

Hello, we just revamped the generator ๐Ÿ˜

For up to date icon and splashscreen generation please use @bam.tech/react-native-make

The new version handles 3 different types of rendering for the splashscreen image (center, contain and cover), so it should solve your issue ๐Ÿ˜‰