We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 184219d commit ee24f78Copy full SHA for ee24f78
apple/RNCWebViewManager.m
@@ -253,9 +253,9 @@ - (BOOL) webView:(RNCWebView *)webView
253
_shouldStartLoad = YES;
254
request[@"lockIdentifier"] = @(_shouldStartLoadLock.condition);
255
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]]) {
+
+ // Block the main thread for a maximum of 500ms until the JS thread returns
+ if ([_shouldStartLoadLock lockWhenCondition:0 beforeDate:[NSDate dateWithTimeIntervalSinceNow:.50]]) {
259
BOOL returnValue = _shouldStartLoad;
260
[_shouldStartLoadLock unlock];
261
_shouldStartLoadLock = nil;
0 commit comments