Skip to content

Commit

Permalink
Merge pull request #344 from donysukardi/ios-annotation-rendering
Browse files Browse the repository at this point in the history
Use shouldDisplay to enable / disable annotation rendering on iOS
  • Loading branch information
wonday authored May 25, 2019
2 parents 58a0d74 + 89a8d76 commit 07a77d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ios/RCTPdf/RCTPdfView.m
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ - (void)didSetProps:(NSArray<NSString *> *)changedProps
for (unsigned long i=0; i<_pdfView.document.pageCount; i++) {
PDFPage *pdfPage = [_pdfView.document pageAtIndex:i];
for (unsigned long j=0; j<pdfPage.annotations.count; j++) {
[pdfPage removeAnnotation:pdfPage.annotations[j]];
//pdfPage.annotations[j].shouldDisplay = _enableAnnotationRendering;
pdfPage.annotations[j].shouldDisplay = _enableAnnotationRendering;
}
}
}
Expand Down

0 comments on commit 07a77d4

Please sign in to comment.