Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-native-splash-screen statusbar color (incompatible types)

I'm trying to implement, react-native-splash-screen on my Android APP.

Splash screen works great, but when I try to customize my status bar color (see docs), I have this error:

"incompatible types: int cannot be converted to boolean"

enter image description here

I follow the instructions step by step (docs). My code is exacly the same

If I remove R.style.SplashScreenTheme, all works fine.

PD: Theme name on styles.xml and R.style.THEMENAME is the same

like image 817
Jose Avatar asked May 06 '26 21:05

Jose


1 Answers

add a third parameter to show function

SplashScreen.show(this, R.style.SplashScreenTheme, true);  // false to disable fullscreen
like image 171
Ali Avatar answered May 08 '26 12:05

Ali



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!