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

The white screen that appears after using RNRestart.Restart()

Open Engraulis61 opened this issue 1 year ago • 8 comments

I want to show a splash screen to the user after calling rnrestart.restart().

In older versions of React, I could solve this problem by adding code to the AppDelegate.mm file. However, since the AppDelegate.mm file has changed, I am unable to display the splash screen after using the RNrestart.Restart() command.

I used to use these codes in old versions of React Native:

RCTRootView *rootView = RCTAppSetupDefaultRootView(bridge, @"appname", nil);

UIStoryboard *sb = [UIStoryboard storyboardWithName:@"LaunchScreen" bundle:nil]; UIViewController vc = [sb instantiateInitialViewController]; UIView launchScreenView = vc.view; launchScreenView.frame = self.window.bounds; RCTRootView.loadingView = launchScreenView;

Is there anyone who can help with a solution for this problem?

Engraulis61 avatar Apr 03 '23 20:04 Engraulis61

i am also facing same issue

UmerHayyat54 avatar Apr 06 '23 07:04 UmerHayyat54

Facing the same issue

faizanviwell avatar Jul 06 '23 10:07 faizanviwell

and me, too.

Any of the solutions through the use of react-native-splash-screen or react-native-bootsplash modules? or custom splash screen..

Melekhin avatar Jul 18 '23 17:07 Melekhin

any solution for this ?

mehthabux avatar Oct 24 '23 07:10 mehthabux

I am facing same issue

hfarhanahmed avatar Dec 14 '23 12:12 hfarhanahmed

Same issue :(

ansmlc avatar Apr 16 '24 21:04 ansmlc