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

[Android][sdk39] Make SplashScreen methods work in SDK39 #10294

Expand Up @@ -9,6 +9,11 @@ import abi39_0_0.org.unimodules.core.errors.CurrentActivityNotFoundException
import abi39_0_0.org.unimodules.core.interfaces.ActivityProvider
import abi39_0_0.org.unimodules.core.interfaces.ExpoMethod

// Below import is added explicitly to provide a redirection from versioned code realm to unversioned code realm.
bbarthec marked this conversation as resolved.
Show resolved Hide resolved
// Without this import any `SplashScreen.methodName(...)` invocation on JS side ends up in versioned SplashScreen kotlin object that stores no state about the ExperienceActivity.
bbarthec marked this conversation as resolved.
Show resolved Hide resolved
// TODO (@bbarthec): add this import while performing Android versioning
import expo.modules.splashscreen.SplashScreen
bbarthec marked this conversation as resolved.
Show resolved Hide resolved

class SplashScreenModule(context: Context) : ExportedModule(context) {
companion object {
private const val NAME = "ExpoSplashScreen"
Expand Down