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

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

Open chenshaxuanjing opened this issue 4 years ago • 2 comments

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

chenshaxuanjing avatar Feb 05 '21 11:02 chenshaxuanjing

全屏暂时没找到方案, 但是可以填充颜色: 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>

Grewer avatar May 28 '21 03:05 Grewer

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

semnyqu avatar Sep 09 '21 06:09 semnyqu