Skip to content

Commit

Permalink
Expose the Reader View button item on iOS (#391)
Browse files Browse the repository at this point in the history
* Expose the Reader View button item on iOS

* Bump version to 1.30.10
  • Loading branch information
radazzouz authored Mar 9, 2021
1 parent 8948565 commit 272be92
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ios/RCTPSPDFKit/Converters/RCTConvert+UIBarButtonItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ + (NSString *)stringBarButtonItemFrom:(UIBarButtonItem *)barButtonItem forViewCo
return @"activityButtonItem";
} else if (barButtonItem == pdfController.settingsButtonItem) {
return @"settingsButtonItem";
} else if (barButtonItem == pdfController.readerViewButtonItem) {
return @"readerViewButtonItem";
} else {
return nil;
}
Expand Down Expand Up @@ -74,6 +76,8 @@ + (UIBarButtonItem *)uiBarButtonItemFrom:(NSString *)barButtonItem forViewContro
return pdfController.activityButtonItem;
} else if ([barButtonItem isEqualToString:@"settingsButtonItem"]) {
return pdfController.settingsButtonItem;
} else if ([barButtonItem isEqualToString:@"readerViewButtonItem"]) {
return pdfController.readerViewButtonItem;
} else {
return nil;
}
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.30.9",
"version": "1.30.10",
"description": "A React Native module for the PSPDFKit library.",
"keywords": [
"react native",
Expand Down
1 change: 1 addition & 0 deletions samples/Catalog/Catalog.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,7 @@ class ToolbarCustomization extends Component {
"thumbnailsButtonItem",
"searchButtonItem",
"annotationButtonItem",
"readerViewButtonItem",
],
"document",
false
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.30.9",
"version": "1.30.10",
"private": true,
"scripts": {
"start": "react-native start",
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.30.9",
"version": "1.30.10",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand Down

0 comments on commit 272be92

Please sign in to comment.