Hi there!
The reason why you're here for this is probably that you couldn't find the correct, updated, and easiest solution to this till now!
Bu...
For further actions, you may consider blocking this person and/or reporting abuse
react-native-splash-screen
is an unmaintained package ( github.com/crazycodeboy/react-nati... ). Tryreact-native-bootsplash
instead ( github.com/zoontek/react-native-bo... )Thanks for letting me know about this! I will switch to
bootsplash
soon and update this blog too! 😊Thanks for this page! Any plans to update with bootsplash?
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();
}
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! 😊
Liquid syntax error: Variable '{{ uri: {% raw %}' was not properly terminated with regexp: /\}\}/
Liquid syntax error: Variable '{{ uri: {% raw %}' was not properly terminated with regexp: /\}\}/
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.
@cmcodes Great, worked perfectly
Happy to know that it did! 😊
Is there possibility to add splash screen w/o any library?
I don't think so! There's no native support for that yet! Although, this library is pretty reliable. It hasn't caused any problem.
I have an issue
android\app\src\main\java\com\shippy\SplashActivity.java:5: error: package android.support.v7.app does not exist
import android.support.v7.app.AppCompatActivity;
How can I solve this?
Thx
Welcome! 😊
didnt work for me, the app just loads for a few seconds then goes off
Have you followed all the steps correctly? Share some more details/ a GIF showing the actual preview would be better.
Worked really good on 2022 with few modifications. Only needed to set exported=false for new intent because android 12, everything else good!