---
title: "Select or deselect annotations in React Native | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/react-native/annotations/create-edit-and-remove/selection-deselection/"
md_url: "https://www.nutrient.io/guides/react-native/annotations/create-edit-and-remove/selection-deselection.md"
last_updated: "2026-05-15T19:10:05.052Z"
description: "Learn how to select or deselect annotations programmatically in Nutrient for React Native."
---

# Programmatically select or deselect annotations in React Native

In some scenarios, it’s useful to select one or more specific annotations programmatically to allow your users to interact with them, or to clear all selected annotations.![Annotation selection](@/assets/guides/react-native/annotations/selection-deselection/annotation-selection.png)

Select annotations programmatically using the `selectAnnotations` API, passing in the list of annotations to select in Instant JSON format:

```typescript

const result = await this.pdfRef.current?.selectAnnotations(
	annotations,
);

```

Or, deselect all annotations using the `clearSelectedAnnotations` API:

```typescript

const result = await this.pdfRef.current?.clearSelectedAnnotations();

```

---

## Related pages

- [Define annotation behavior with flags on React Native](/guides/react-native/annotations/create-edit-and-remove/annotation-flags.md)
- [Programmatically create annotations in React Native](/guides/react-native/annotations/create-edit-and-remove/programmatic.md)
- [Disable annotation editing in React Native](/guides/react-native/annotations/create-edit-and-remove/disable-editing.md)
- [Set annotation author in React Native](/guides/react-native/annotations/create-edit-and-remove/author-name.md)
- [Detecting if annotations have changed in React Native](/guides/react-native/annotations/create-edit-and-remove/detect-changes.md)

