Closed ph8nt0m closed 3 months ago
@ph8nt0m Are you using expo-dev-launcher
? There's an issue in it.
I got it
override fun onCreate(savedInstanceState: Bundle?) {
DevLauncherSplashScreenProvider()
.attachSplashScreenViewAsync(plainActivity)
redirect(plainActivity.intent)
}
=>
override fun onCreate(savedInstanceState: Bundle?) {
redirect(plainActivity.intent)
}
I change it but it occurs again
@ph8nt0m You have to patch the package + clear the build cache. You could also uninstall it.
npx patch-package expo-dev-launcher
rm -rf node_modules && yarn
./gradlew clean
yarn android
I did all but it occurs again
package expo.modules.devlauncher.react.activitydelegates
import android.content.Intent
import android.os.Bundle
import com.facebook.react.ReactActivity
class DevLauncherReactActivityRedirectDelegate(
activity: ReactActivity,
private val redirect: (Intent?) -> Unit
) : DevLauncherReactActivityNOPDelegate(activity) {
override fun onCreate(savedInstanceState: Bundle?) {
redirect(plainActivity.intent)
}
}
I delete expo-dev-client and solved it
Thanks a lot
Before submitting a new issue
Bug summary
In android, SplashScreen is hiding immediately and it blink when I call hide()
Library version
^6.1.1
Environment info
Steps to reproduce
https://github.com/user-attachments/assets/975db537-c113-481d-9329-07a5f856dd83
Reproducible sample code