react-native-restart icon indicating copy to clipboard operation
react-native-restart copied to clipboard

White Screen still appearing after adding splash screen.

Open ahadtechcarrot opened this issue 2 years ago • 2 comments

Hi,

I tried with Splashscreen.show() method wherever I use RNRestart.Restart() as it was mentioned in #158 but still the white screen is appearing both in Android and IOS. Can anyone suggest a better approach to remove the white screen?

ahadtechcarrot avatar Mar 03 '22 09:03 ahadtechcarrot

@avishayil can you please provide any update regarding this issue?

ahadtechcarrot avatar Mar 18 '22 14:03 ahadtechcarrot

This works for me.. import SplashScreen from 'react-native-splash-screen';

and then where restarting use splashscreen.show method

RNRestart.Restart(); SplashScreen.show();

muazazhar avatar Apr 14 '22 06:04 muazazhar

This works for me.. import SplashScreen from 'react-native-splash-screen';

and then where restarting use splashscreen.show method

RNRestart.Restart(); SplashScreen.show();

react-native-splash-screen is not maintained. While there is another up-to-date library react-native-bootsplash. But they remove the show function when updating the library for supporting RN 0.70+

Currently, there is no way to show a splash screen with react-native-bootsplash on Restart. If anyone finds out solution. Please let me know. I am suffering from this issue

Previously, I am using the same solution (Showing splash on restarting the app).

saadi-ninjasCode avatar Feb 10 '23 07:02 saadi-ninjasCode

This works for me.. import SplashScreen from 'react-native-splash-screen'; and then where restarting use splashscreen.show method RNRestart.Restart(); SplashScreen.show();

react-native-splash-screen is not maintained. While there is another up-to-date library react-native-bootsplash. But they remove the show function when updating the library for supporting RN 0.70+

Currently, there is no way to show a splash screen with react-native-bootsplash on Restart. If anyone finds out solution. Please let me know. I am suffering from this issue

Previously, I am using the same solution (Showing splash on restarting the app).

So at the moment is there an option to manually show splash screen after manually restarting the app?

Melekhin avatar Jul 18 '23 17:07 Melekhin

For anyone looking for an alternative solution (no white screen):

import { reloadAsync } from 'expo-updates'; 
reloadAsync();

Source: https://stackoverflow.com/questions/57330046/how-to-restart-app-react-native-and-expo

ansmlc avatar Apr 16 '24 22:04 ansmlc