react-native-splash-screen always show it does not hide automatically

Created on 1 Oct 2019  路  7Comments  路  Source: crazycodeboy/react-native-splash-screen

I am using react-native-splash-screen version 3.2 . It show successfully but does not hide always show and don't load react native component screen. But I follow all the steps that declare to the plugin manual. I observe it in android platform. Please give me the solution then it's a pleasure for me.

All 7 comments

Hello,
Maybe you could double check with this tutorial : https://medium.com/@appstud/add-a-splash-screen-to-a-react-native-app-810492e773f9

Hello quick way to add a spash screen for android is save your splash screen png(my image is full screen height) to android/app/src/main/res/drawable/splash_screen.png then edit android/app/src/main/res/values/styles.xml
`

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="android:windowBackground">@drawable/splash_screen</item>
</style>


`

take a look at https://github.com/crazycodeboy/react-native-splash-screen/issues/442#issuecomment-553391344, the SplashScreen.hide() in App.js componentDidMount did the trick

Import SplashScreen from './react-native-splash-screen' in App.js, then use SplashScreen.hide() within componentDidMount()

I use wix/react-native-navigation and I used SplashScreen.hide() inside componentDidMount() but the splash screen always shows up...Then I moved it inside index.js after screen registering but it did not work as well. Please help me.

Even the bundler does not start. Just a still Screen

try to remove the app and run it again from xcode

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arnsa picture arnsa  路  5Comments

ijry picture ijry  路  5Comments

TsuryKnox picture TsuryKnox  路  5Comments

grundmanise picture grundmanise  路  3Comments

leishi8819 picture leishi8819  路  3Comments