Open chenshaxuanjing opened 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>
貌似会有顶部透明透到下一个页面的情况,状态栏那一块是透明的但是,splash dialog却没有铺满整屏
Run
react-native info
in your project and share the content.What
react-native-splash-screen
version are you using?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?
状态栏会镂空。。。