Hi, I have a problem with the splash screen. I’m using usePreventHideSplashScreen
, but it only shows for a couple of seconds and then hides automatically. Even if I comment out the code that should prevent it from hiding.
SDK Version: 0.20.3154
App State: Foreground
NAME=“OS”
OE_VERSION=“4.0.0”
OS_MAJOR_VERSION=“1”
OS_MINOR_VERSION=“1”
RELEASE_ID=“2”
OS_VERSION=“1.1”
BRANCH_CODE=“VegaMainlineTvIntegration”
BUILD_DESC=“OS 1.1 (VegaMainlineTvIntegration/4411)”
BUILD_FINGERPRINT=“4.0.147850.0(3072cab629675a74)/4411N:user-external/release-keys”
BUILD_VARIANT=“user-external”
BUILD_TAGS=“release-keys”
BUILD_DATE=“Thu Aug 14 19:28:37 UTC 2025”
BUILD_TIMESTAMP=“1755199717”
VERSION_NUMBER=“201010441150”
Expected behavior:
The splash screen should remain visible until the call to hideSplashScreenCallback
is made.
Source code:
import {
useHideSplashScreenCallback,
usePreventHideSplashScreen,
} from ‘@amzn/react-native-kepler’;
(…)
const App = () => {
usePreventHideSplashScreen();
const [isAppReady, setIsAppReady] = useState(false);
const hideSplashScreenCallback = useHideSplashScreenCallback();
(…)
useEffect(() => {
if (isAppReady) {
// Hide the splash screen and render content
console.log(‘HIDE SPLASH’, isAppReady);
hideSplashScreenCallback();
}
}, [isAppReady]);
(…)