This makes the BootSplash window translucent and can prevent the extra default window from appearing before the custom splash screen.
MainActivity
BootSplash also needs to be initialized from MainActivity.kt:
import android.os.Bundle
import com.zoontek.rnbootsplash.RNBootSplash
override fun onCreate(savedInstanceState: Bundle?) {
RNBootSplash.init(this, R.style.BootTheme)
super.onCreate(savedInstanceState)
}
Important
android:windowIsTranslucent is a workaround and is not required by react-native-bootsplash itself.
On newer Android versions, especially Android 12+, Android provides its own system startup splash behaviour. Test the result on both older and newer Android devices after making this change.