Skip to content

Black screen between splash screen and first set root. #8077

@ermakov95

Description

@ermakov95

What happened?

After upgrading RN from 0.74 to 0.77 and RNN from 7.43 to 8.2, a problem appeared: when launching the application, the splash screen fades and the screen turns black for half a second, and only then the first screen appears.

What was the expected behaviour?

There should be a seamless transition between the splash screen and the first screen.

I found the reason for this in file "./lib/ios/TurboModules/RNNTurboManager.mm":

UIApplication.sharedApplication.delegate.window.rootViewController = nil

If I comment this line, the problem goes away, but I'm not at all sure about the reliability of this. I hope someone can help me figure it out and find the right solution.

diff --git a/node_modules/react-native-navigation/lib/ios/TurboModules/RNNTurboManager.mm b/node_modules/react-native-navigation/lib/ios/TurboModules/RNNTurboManager.mm
index cd429d3..0340ed1 100644
--- a/node_modules/react-native-navigation/lib/ios/TurboModules/RNNTurboManager.mm
+++ b/node_modules/react-native-navigation/lib/ios/TurboModules/RNNTurboManager.mm
@@ -100,7 +100,7 @@ - (void)onJavaScriptWillLoad {

  • (void)onJavaScriptLoaded {
    RCTExecuteOnMainQueue(^{
  • UIApplication.sharedApplication.delegate.window.rootViewController = nil;
  • // UIApplication.sharedApplication.delegate.window.rootViewController = nil;

    [self->_commandsHandler setReadyToReceiveCommands:true];
    // TODO: Refactor

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

No response

In what environment did this happen?

React Native Navigation version: 8.2.1
React Native version: 0.77.3
Has Fabric (React Native's new rendering system) enabled: yes
Node version: 23
Device model: iPhone 14
iOS version: 18.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions