react-native-splash-screen MainActivity.java:13: error: incompatible types: int cannot be converted to boolean,

[Solution 1]:

showAdd a third parameter to the function

SplashScreen.show(this, R.style.SplashScreenTheme, true);  // false to disable fullscreen

【discuss】:

  • It works for me. Thanks!

[Solution 2]:

Had the same problem a while ago. This package is not maintained. So it may not be possible to change the status bar color. Maybe try react-native-bootsplash . It's a well-maintained package without any such issues.

【discuss】:

  • Yep, I finally decided to move to react-native-bootsplash, thanks!

[Solution 3]:

Just downgrade to ^3.2.0 and it will work fine

React-native-splash-screen status bar color (incompatible types) answer - Stack Overflow

Guess you like

Origin blog.csdn.net/txl910514/article/details/130438508