Skip to content

Commit

Permalink
Add more information to __fbBatchedBridge is undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
terribleben committed Jul 25, 2017
1 parent 042f254 commit f395d3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion React/Executors/RCTJSCExecutor.mm
Expand Up @@ -596,7 +596,10 @@ - (void)_executeJSCall:(NSString *)method
}
} else {
if (!errorJSRef && JSC_JSValueGetType(ctx, batchedBridgeRef) == kJSTypeUndefined) {
error = RCTErrorWithMessage(@"Unable to execute JS call: __fbBatchedBridge is undefined");
error = RCTErrorWithMessage(@"Unable to execute JS call: __fbBatchedBridge is undefined. This can happen "
"if you try to execute JS before the bridge has finished setting up. If the "
"issue persists, try resetting React Native devtools (e.g. by uninstalling and "
"reinstalling this app).");
}
}

Expand Down

0 comments on commit f395d3a

Please sign in to comment.