Skip to content

Commit

Permalink
Make sure page index is set when showing PDF (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
steviki authored Jun 29, 2021
1 parent cb26289 commit 227b83a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ios/RCTPSPDFKit/RCTPSPDFKitView.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ - (void)didMoveToWindow {
[topControllerView.leadingAnchor constraintEqualToAnchor:self.leadingAnchor],
[topControllerView.trailingAnchor constraintEqualToAnchor:self.trailingAnchor],
]];

self.pdfController.pageIndex = self.pageIndex;
}

- (void)destroyViewControllerRelationship {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion samples/Catalog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Catalog",
"version": "1.31.3",
"version": "1.31.4",
"private": true,
"scripts": {
"start": "react-native start",
Expand Down
2 changes: 1 addition & 1 deletion samples/Catalog/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion samples/NativeCatalog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NativeCatalog",
"version": "1.31.3",
"version": "1.31.4",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand Down
2 changes: 1 addition & 1 deletion samples/NativeCatalog/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 227b83a

Please sign in to comment.