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 6fa6fff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion React/Executors/RCTJSCExecutor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,12 @@ - (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 and the bridge has not set up, for example if it encountered "
"an incomplete bundle or a fatal script execution error during startup. You might try"
"double checking that the bundle loaded correctly, or resetting the state of React Native"
"devtools on your device (e.g. by uninstalling and reinstalling your app from the device"
"home screen).");
}
}

Expand Down

0 comments on commit 6fa6fff

Please sign in to comment.