We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a75487e commit ca95f15Copy full SHA for ca95f15
1 file changed
ios/RCTPSPDFKit/Converters/RCTConvert+PSPDFAnnotation.m
@@ -14,7 +14,7 @@ @implementation RCTConvert (PSPDFAnnotation)
14
+ (NSArray <NSDictionary *> *)instantJSONFromAnnotations:(NSArray <PSPDFAnnotation *> *) annotations {
15
NSMutableArray <NSDictionary *> *annotationsJSON = [NSMutableArray new];
16
for (PSPDFAnnotation *annotation in annotations) {
17
- NSDictionary <NSString *, NSString *> *uuidDict = @{@"uuid" : [annotation valueForKey:@"uuid"]};
+ NSDictionary <NSString *, NSString *> *uuidDict = @{@"uuid" : annotation.uuid};
18
NSData *annotationData = [annotation generateInstantJSONWithError:NULL];
19
if (annotationData) {
20
NSMutableDictionary *annotationDictionary = [[NSJSONSerialization JSONObjectWithData:annotationData options:kNilOptions error:NULL] mutableCopy];
0 commit comments