Skip to content

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

Open
@duduCMT

Description

@duduCMT

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions