DEV Community

Discussion on: How to add Splash Screen in a React Native Android App? 🌟

Collapse
 
subesharbadev profile image
Subesh Singh

It did worked for me , but there is white screen coming after the splash screen. I have used the .hide() into componentDidMount().

componentDidMount() {
if (Platform.OS === 'android') {
BackHandler.addEventListener(
'hardwareBackPress',
this.onAndroidBackPress,
);
}
SplashScreen.hide();
}

Collapse
 
cmcodes profile image
C M Pandey

I think you missed the step #6 where I mentioned the hide function. But, anyways it's good to know that it worked for you! 😊

Collapse
 
subesharbadev profile image
Subesh Singh

Liquid syntax error: Variable '{{ uri: {% raw %}' was not properly terminated with regexp: /\}\}/

Collapse
 
subesharbadev profile image
Subesh Singh

Liquid syntax error: Variable '{{ uri: {% raw %}' was not properly terminated with regexp: /\}\}/

Collapse
 
subesharbadev profile image
Subesh Singh

I did not missed the step #6 , actually white screen was coming after splash screen and before the content loaded properly. Now I have added an activity indicator while the site is being loaded. Thanks for this post.