-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 is automatically dismissed in development client #30526
Comments
This issue should be reposted to the repository library. The expo team does not accompany it and therefore by posting it here, the author of this library will not know about the problem сс @zoontek |
Thanks @peterlazar1993, the reproduction repository is perfect. The issue seems to occur only with @teivienn we are working together with the expo lately, solving this is important for them too as the splash screen implementation of Expo is about to evolve. |
@peterlazar1993 Found it, we have to comment / disable this line. I started working on reading the app config from anywhere in expo modules, maybe we can read it in the |
Hi there, I am experiencing (I think) the same or similar error. If I run the following example either from Expo Go or from a custom client in development mode, the However, if I create a build with EAS, this import * as SplashScreen from 'expo-splash-screen';
import { StatusBar } from 'expo-status-bar';
import { useEffect } from 'react';
import { StyleSheet, Text, View } from 'react-native';
const start_time = Date.now();
// Keep the splash screen visible while we fetch resources
SplashScreen.preventAutoHideAsync();
export default function App() {
useEffect(() => {
// Wait 5 seconds to remove the splash screen
new Promise((resolve) => setTimeout(resolve, 5 * 1000)).then(() => {
console.log(
`👌 Application loading is completed in ${Date.now() - start_time}ms`,
);
SplashScreen.hideAsync();
});
}, []);
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
}); (just in case) I leave the package.json: {
"name": "splashscreenissue",
"version": "1.0.0",
"main": "expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
},
"dependencies": {
"expo": "~51.0.22",
"expo-splash-screen": "~0.27.5",
"expo-status-bar": "~1.12.1",
"react": "18.2.0",
"react-native": "0.74.3"
},
"devDependencies": {
"@babel/core": "^7.20.0"
},
"private": true
} |
@outaTiME The issue reported here is specific to Also the issue reported here is the inverse of what you're experiencing. SplashScreen is removed automatically in custom dev client builds, but works perfectly in release builds. |
Understood @peterlazar1993, I thought that maybe because of the comment made by @zoontek this could be related at some point. In case you are interested I created a new issue here: #30643 |
Summary
I am trying out react-native-bootsplash v6 with expo support. On running the development client, the splash screen is automatically hidden. This only happens on Android and only with development client builds
bootsplash.mp4
Managed or bare workflow?
managed
What platform(s) does this occur on?
Android
Package versions
Environment
Reproducible demo
https://github.com/peterlazar1993/bootsplash-sample
Stacktrace (if a crash is involved)
No response
The text was updated successfully, but these errors were encountered: