react-native-splash-screen-demo icon indicating copy to clipboard operation
react-native-splash-screen-demo copied to clipboard

layout issue on Samsung S8

Open liangfenxiaodao opened this issue 6 years ago • 3 comments

This demo works fine on Nexus and Huawei, but has a slight layout issue on Samsung S8.

when SplashActivity starts MainActivity, I can see the logo moved down a little bit, but clearly.

liangfenxiaodao avatar Apr 10 '18 22:04 liangfenxiaodao

Interesting. The S8 must not have a standard status bar height. You would need to modify this to make it work correctly.

I'm not sure how you would/if you can conditionally change that (not too familiar with Android).

spencercarli avatar Apr 13 '18 21:04 spencercarli

Thank you for your reply. I've done a few spikes and finally decided to remove the splash-scheme.

liangfenxiaodao avatar Apr 14 '18 11:04 liangfenxiaodao

Try adding "-"

android:layout_marginTop="-24dp"

felipebluiz avatar Sep 12 '18 01:09 felipebluiz