Skip to content

Commit ee24f78

Browse files
authored
feat: increase should start load timeout (#47)
1 parent 184219d commit ee24f78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apple/RNCWebViewManager.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ - (BOOL) webView:(RNCWebView *)webView
253253
_shouldStartLoad = YES;
254254
request[@"lockIdentifier"] = @(_shouldStartLoadLock.condition);
255255
callback(request);
256-
257-
// Block the main thread for a maximum of 250ms until the JS thread returns
258-
if ([_shouldStartLoadLock lockWhenCondition:0 beforeDate:[NSDate dateWithTimeIntervalSinceNow:.25]]) {
256+
257+
// Block the main thread for a maximum of 500ms until the JS thread returns
258+
if ([_shouldStartLoadLock lockWhenCondition:0 beforeDate:[NSDate dateWithTimeIntervalSinceNow:.50]]) {
259259
BOOL returnValue = _shouldStartLoad;
260260
[_shouldStartLoadLock unlock];
261261
_shouldStartLoadLock = nil;

0 commit comments

Comments
 (0)