Show/Hide annotations in React Native

Hi, I am looking for a way to show/hide all annotations in React Native similar to annotationManager.showAnnotation() and annotationManager.hideAnnotation() to view and hide annotations present on a document.
I couldn’t find an API in the documentation for react native. Any solutions?
Thanks

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi, it is not supported at the moment however we can look into adding a “showAllAnnotations” and “hideAllAnnotations” APIs. Would that work for you? Thanks.

Hi, Thanks for the response.
Yes that would surely help if you can add the above mentioned APIs.

Hi, it turns out there is API for this already, you need to use “setDrawAnnotations”. It has a small issue, which is addressed here: [support] Update setDrawAnnotations by akwanpdf · Pull Request #347 · PDFTron/pdftron-react-native · GitHub. Could you give a try?