Skip to content

Commit

Permalink
Merge pull request #309 from PSPDFKit/rad/add-annotation-name-to-payl…
Browse files Browse the repository at this point in the history
…oad-onAnnotationsChanged-when-removed

Add the annotation name to the `onAnnotationsChanged` payload when annotation is removed on iOS
  • Loading branch information
radazzouz authored Oct 16, 2019
2 parents d7c1af4 + 270b908 commit 1ff0220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RCTPSPDFKit/Converters/RCTConvert+PSPDFAnnotation.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ @implementation RCTConvert (PSPDFAnnotation)
[annotationsJSON addObject:annotationDictionary];
}
} else {
// We only generate Instant JSON data for attached annotations. When an annotation is deleted, we only set the annotation uuid.
[annotationsJSON addObject:uuidDict];
// We only generate Instant JSON data for attached annotations. When an annotation is deleted, we only set the annotation uuid and name.
[annotationsJSON addObject:@{@"uuid" : annotation.uuid, @"name" : annotation.name ?: [NSNull null]}];
}
}

Expand Down

0 comments on commit 1ff0220

Please sign in to comment.