Disable Annotation Editing in React Native

PSPDFKit for React Native allows you to edit (create, edit, or delete) annotations in a document.

To disable annotation editing for your document, you can set the enableAnnotationEditing configuration option to false, like so:

<PSPDFKitView
	document={DOCUMENT}
	configuration={{
		enableAnnotationEditing: false,
	}}
	ref="pdfView"
	fragmentTag="PDF1"
	style={{ flex: 1 }}
/>

Enable Modifications Only for Specific Annotation Types

You can control which annotation types are editable, and you can specify their types using the editableAnnotationTypes configuration option. For example, you can allow only the modification of ink annotations:

<PSPDFKitView
	document={DOCUMENT}
	configuration={{
		editableAnnotationTypes: ['ink'],
	}}
	ref="pdfView"
	fragmentTag="PDF1"
	style={{ flex: 1 }}
/>