react-native-splash-screen
react-native-splash-screen copied to clipboard
水滴屏 刘海屏怎么全屏显示
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 :
- Steps to reproduce the issue or to explain in which case you get the issue
- Interesting
logs
Join a screenshot or video of the problem on the simulator or device?
xiaomi10(小米10)
Show us the code you are using?
状态栏会镂空。。。
全屏暂时没找到方案, 但是可以填充颜色: 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>
貌似会有顶部透明透到下一个页面的情况,状态栏那一块是透明的但是,splash dialog却没有铺满整屏