diff --git a/React/Base/RCTUtils.m b/React/Base/RCTUtils.m index b16503a8f..2241a65d8 100644 --- a/React/Base/RCTUtils.m +++ b/React/Base/RCTUtils.m @@ -424,6 +424,8 @@ NSDictionary *RCTJSErrorFromCodeMessageAndNSError(NSString *code errorInfo[@"domain"] = RCTErrorDomain; } errorInfo[@"code"] = code ?: RCTErrorUnspecified; + errorInfo[@"userInfo"] = RCTNullIfNil(error.userInfo); + // Allow for explicit overriding of the error message errorMessage = message ?: errorMessage;