---
title: "PSPDFKit 2.13 Migration Guide"
canonical_url: "https://www.nutrient.io/guides/react-native/migration-guides/react-native-2-13-migration-guide/"
md_url: "https://www.nutrient.io/guides/react-native/migration-guides/react-native-2-13-migration-guide.md"
last_updated: "2026-05-25T18:42:17.795Z"
description: "Learn how to migrate to PSPDFKit 2.13 for React Native."
---

This guide covers migrating to PSPDFKit 2.13 for React Native, since the [`processAnnotations`](https://www.nutrient.io/api/react-native/Nutrient.html#.processAnnotations) API was updated. This change enables you to specify an `Array` of annotation types that should be flattened or embedded in the new document, and it’s now possible specify a password to unlock the source document, if required:

In previous versions, the [`processAnnotations`](https://www.nutrient.io/api/react-native/Nutrient.html#.processAnnotations) API was used as follows:

```typescript

const result = await PSPDFKit.processAnnotations(
	'flatten',
	'all',
	sourceDocumentPath,
	processedDocumentPath,
);

```

As of PSPDFKit 2.13 for React Native, you can now specify multiple annotation types to include in the processing operation. The last parameter of the method can be used to specify the password to unlock the source document specified in the third parameter:

```typescript

const result = await PSPDFKit.processAnnotations(
	Annotation.Change.FLATTEN,
	[Annotation.Type.INK, Annotation.Type.STAMP],
	sourceDocumentPath,
	processedDocumentPath,
	null, // `null` if no password is required.
);

```

For more information, refer to the [PSPDFKit 2.13 for React Native changelog](https://www.nutrient.io/guides/react-native/changelog.md#2.13).
---

## Related pages

- [React Native 2 12 Migration Guide](/guides/react-native/migration-guides/react-native-2-12-migration-guide.md)
- [React Native 2 16 Migration Guide](/guides/react-native/migration-guides/react-native-2-16-migration-guide.md)
- [React Native 2 2 Migration Guide](/guides/react-native/migration-guides/react-native-2-2-migration-guide.md)
- [React Native 2 9 Migration Guide](/guides/react-native/migration-guides/react-native-2-9-migration-guide.md)
- [React Native 2 3 Migration Guide](/guides/react-native/migration-guides/react-native-2-3-migration-guide.md)
- [React Native 2 8 Migration Guide](/guides/react-native/migration-guides/react-native-2-8-migration-guide.md)
- [React Native 3 Migration Guide](/guides/react-native/migration-guides/react-native-3-migration-guide.md)
- [How to upgrade to the latest React Native version](/guides/react-native/migration-guides/upgrading.md)
- [React Native 4 Migration Guide](/guides/react-native/migration-guides/react-native-4-migration-guide.md)

