Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
duduCMT opened this issue Jan 13, 2022 · 1 comment
Open

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

duduCMT opened this issue Jan 13, 2022 · 1 comment

Comments

@duduCMT
Copy link

duduCMT commented Jan 13, 2022

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.

@saamerm
Copy link

saamerm commented Feb 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants