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
This commit is contained in:
Rick Hanlon 2020-01-05 05:20:01 -08:00 коммит произвёл Facebook Github Bot
Родитель 173e7835c6
Коммит 88813761ec
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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];