Skip to content

Commit 227b83a

Browse files
authoredJun 29, 2021
Make sure page index is set when showing PDF (#408)
1 parent cb26289 commit 227b83a

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed
 

‎ios/RCTPSPDFKit/RCTPSPDFKitView.m

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ - (void)didMoveToWindow {
7878
[topControllerView.leadingAnchor constraintEqualToAnchor:self.leadingAnchor],
7979
[topControllerView.trailingAnchor constraintEqualToAnchor:self.trailingAnchor],
8080
]];
81+
82+
self.pdfController.pageIndex = self.pageIndex;
8183
}
8284

8385
- (void)destroyViewControllerRelationship {

‎package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-pspdfkit",
3-
"version": "1.31.3",
3+
"version": "1.31.4",
44
"description": "A React Native module for the PSPDFKit library.",
55
"keywords": [
66
"react native",

‎samples/Catalog/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Catalog",
3-
"version": "1.31.3",
3+
"version": "1.31.4",
44
"private": true,
55
"scripts": {
66
"start": "react-native start",

‎samples/Catalog/yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -5415,7 +5415,7 @@ react-native-permissions@^1.1.1:
54155415
integrity sha512-t0Ujm177bagjUOSzhpmkSz+LqFW04HnY9TeZFavDCmV521fQvFz82aD+POXqWsAdsJVOK3umJYBNNqCjC3g0hQ==
54165416

54175417
"react-native-pspdfkit@file:../..":
5418-
version "1.31.3"
5418+
version "1.31.4"
54195419

54205420
react-native-qrcode-scanner@^1.2.1:
54215421
version "1.2.1"

‎samples/NativeCatalog/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "NativeCatalog",
3-
"version": "1.31.3",
3+
"version": "1.31.4",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",

‎samples/NativeCatalog/yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -5506,7 +5506,7 @@ react-native-gesture-handler@^1.3.0:
55065506
prop-types "^15.7.2"
55075507

55085508
"react-native-pspdfkit@file:../..":
5509-
version "1.31.3"
5509+
version "1.31.4"
55105510

55115511
react-native-safe-area-view@^0.14.1:
55125512
version "0.14.8"

0 commit comments

Comments
 (0)
Please sign in to comment.