diff --git a/React/Base/RCTUtils.m b/React/Base/RCTUtils.m index c693ea1a702ef2..ba936002dea566 100644 --- a/React/Base/RCTUtils.m +++ b/React/Base/RCTUtils.m @@ -372,7 +372,8 @@ BOOL RCTClassOverridesInstanceMethod(Class cls, SEL selector) NSDictionary *RCTJSErrorFromNSError(NSError *error) { - return RCTJSErrorFromCodeMessageAndNSError(RCTErrorUnspecified, + NSString *codeWithDomain = [NSString stringWithFormat:@"E%@%zd", error.domain.uppercaseString, error.code]; + return RCTJSErrorFromCodeMessageAndNSError(codeWithDomain, error.localizedDescription, error); }