diff --git a/ios/RCTPSPDFKit/RCTPSPDFKitView.m b/ios/RCTPSPDFKit/RCTPSPDFKitView.m index c0f5f1a6..d91c0df8 100644 --- a/ios/RCTPSPDFKit/RCTPSPDFKitView.m +++ b/ios/RCTPSPDFKit/RCTPSPDFKitView.m @@ -78,6 +78,8 @@ - (void)didMoveToWindow { [topControllerView.leadingAnchor constraintEqualToAnchor:self.leadingAnchor], [topControllerView.trailingAnchor constraintEqualToAnchor:self.trailingAnchor], ]]; + + self.pdfController.pageIndex = self.pageIndex; } - (void)destroyViewControllerRelationship { diff --git a/package-lock.json b/package-lock.json index 188d0fe3..7992ec5c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-native-pspdfkit", - "version": "1.31.3", + "version": "1.31.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index f5e76438..1d21003b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-pspdfkit", - "version": "1.31.3", + "version": "1.31.4", "description": "A React Native module for the PSPDFKit library.", "keywords": [ "react native", diff --git a/samples/Catalog/package.json b/samples/Catalog/package.json index 2b7cb7bc..b5b6142e 100644 --- a/samples/Catalog/package.json +++ b/samples/Catalog/package.json @@ -1,6 +1,6 @@ { "name": "Catalog", - "version": "1.31.3", + "version": "1.31.4", "private": true, "scripts": { "start": "react-native start", diff --git a/samples/Catalog/yarn.lock b/samples/Catalog/yarn.lock index 94530ec4..6661eb8f 100644 --- a/samples/Catalog/yarn.lock +++ b/samples/Catalog/yarn.lock @@ -5415,7 +5415,7 @@ react-native-permissions@^1.1.1: integrity sha512-t0Ujm177bagjUOSzhpmkSz+LqFW04HnY9TeZFavDCmV521fQvFz82aD+POXqWsAdsJVOK3umJYBNNqCjC3g0hQ== "react-native-pspdfkit@file:../..": - version "1.31.3" + version "1.31.4" react-native-qrcode-scanner@^1.2.1: version "1.2.1" diff --git a/samples/NativeCatalog/package.json b/samples/NativeCatalog/package.json index c9cde698..89d038a8 100644 --- a/samples/NativeCatalog/package.json +++ b/samples/NativeCatalog/package.json @@ -1,6 +1,6 @@ { "name": "NativeCatalog", - "version": "1.31.3", + "version": "1.31.4", "private": true, "scripts": { "android": "react-native run-android", diff --git a/samples/NativeCatalog/yarn.lock b/samples/NativeCatalog/yarn.lock index a0a9f632..8d1e7142 100644 --- a/samples/NativeCatalog/yarn.lock +++ b/samples/NativeCatalog/yarn.lock @@ -5506,7 +5506,7 @@ react-native-gesture-handler@^1.3.0: prop-types "^15.7.2" "react-native-pspdfkit@file:../..": - version "1.31.3" + version "1.31.4" react-native-safe-area-view@^0.14.1: version "0.14.8"