My app is opening the first time normally, the fast refresh is working perfectly, but when I reload the application it breaks and comes back with a blank screen, and it seems to lose connection with Metro.
Closing and opening the app again the blank screen continues, it only works again building.
AppDelegate.mm:
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"AppName";
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
[FIRApp configure];
[super application:application didFinishLaunchingWithOptions:launchOptions];
[AppCenterReactNative register];
[AppCenterReactNativeAnalytics registerWithInitiallyEnabled:true];
UIView *rootView = self.window.rootViewController.view; // ⬅️ ❗️ only required for react-native >= 0.71
[RNBootSplash initWithStoryboard:@"BootSplash" rootView:rootView]; // ⬅️ initialize the splash screen
return YES;
}
Bug summary
My app is opening the first time normally, the fast refresh is working perfectly, but when I reload the application it breaks and comes back with a blank screen, and it seems to lose connection with Metro. Closing and opening the app again the blank screen continues, it only works again building.
AppDelegate.mm:
package.json:
Any idea what could be causing this?
Library version
4.6.0
Environment info
Steps to reproduce
https://user-images.githubusercontent.com/93951962/236692882-66d4e44b-e489-48ab-b579-e377667ce3ef.mp4
Reproducible sample code