react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

SplashScreen.show(this, R.style.SplashScreenTheme); was replaced

Open duduCMT opened this issue 2 years ago • 1 comments

react-native-splash-screen version: ^3.3.0

I tried to use the command: SplashScreen.show(this, R.style.SplashScreenTheme);, to color the statusbar but it is not recognized.

If I just use SplashScreen.show(this); it works everything normally, so I don't believe it's a configuration problem.

In android studio show this error message: Required type: boolean, Provided: int.

Basically the method I want to use does not exist or was not found. Only alternate versions.

Going into the SplashScreen class code i found that there is a working method: show(final Activity activity, final int themeResId, final boolean fullScreen)

In the end, I realized that this is not a bug, just an outdated documentation. Please correct this detail for future users.

Sorry for my bad English, it's not my native language.

duduCMT avatar Jan 13 '22 20:01 duduCMT

@duduCMT create a PR #562 , hoping it gets merged

saamerm avatar Feb 01 '22 16:02 saamerm