From 88813761ecac64d91cd6a42498083aa14d248a77 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Sun, 5 Jan 2020 05:20:01 -0800 Subject: [PATCH] LogBox - Double sync rendering timeout Summary: On slower devices , 0.5s is not fast enough and we frequently render a black screen. Let's bump the sync rendering timeout to 1s. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D19282619 fbshipit-source-id: 0d9ae60f4869b0de7c4523c2cb33fbbf320c6438 --- React/CoreModules/RCTLogBox.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/React/CoreModules/RCTLogBox.mm b/React/CoreModules/RCTLogBox.mm index 5522b72244..d224052696 100644 --- a/React/CoreModules/RCTLogBox.mm +++ b/React/CoreModules/RCTLogBox.mm @@ -48,8 +48,8 @@ [_surface start]; [_surface setSize:frame.size]; - if (![_surface synchronouslyWaitForStage:RCTSurfaceStageSurfaceDidInitialMounting timeout:.5]) { - RCTLogInfo(@"Failed to mount LogBox within 500ms"); + if (![_surface synchronouslyWaitForStage:RCTSurfaceStageSurfaceDidInitialMounting timeout:1]) { + RCTLogInfo(@"Failed to mount LogBox within 1s"); } _rootViewController = [UIViewController new];