I added a splash screen when booting the app using https://www.npmjs.com/package/react-native-splash-screen#examples .
But before launching the splash screen, I can see a white screen. I can change that screen's colour using styles.xml but cannot remove it. Can anyone help me to remove that I am new to react-native?
Go to android/app/src/main/res/values/styles.xml
Disable the app's preview:
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowDisablePreview">true</item>
</style>
</resources>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.