crazycodeboy / react-native-splash-screen

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

水滴屏 刘海屏怎么全屏显示 #517

Open chenshaxuanjing opened 3 years ago

chenshaxuanjing commented 3 years ago

Run react-native info in your project and share the content.

react-native: 0.63.4 

What react-native-splash-screen version are you using?

"react-native-splash-screen": "^3.2.0",

What platform does your issue occur on? (Android/iOS/Both)

Android

Describe your issue as precisely as possible : 1) Steps to reproduce the issue or to explain in which case you get the issue 2) Interesting logs

Join a screenshot or video of the problem on the simulator or device?

xiaomi10(小米10)

Show us the code you are using?

状态栏会镂空。。。 image

Grewer commented 3 years ago

全屏暂时没找到方案, 但是可以填充颜色: android/app/src/main/res/values/styles.xml:

<resources>
  <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:textColor">#000000</item>

    <!--适配启动页的颜色-->
    <item name="android:statusBarColor">#ffffff</item>
    <item name="android:windowLightStatusBar">true</item>
  </style>
</resources>
semnyqu commented 3 years ago

貌似会有顶部透明透到下一个页面的情况,状态栏那一块是透明的但是,splash dialog却没有铺满整屏