Skip to content

Commit

Permalink
Merge pull request #193 from PSPDFKit/rad/update-rn-0.59.0
Browse files Browse the repository at this point in the history
Update the iOS and Android Catalog for React Native 0.59.9
  • Loading branch information
radazzouz authored Jun 14, 2019
2 parents accdd0b + 46a8ac7 commit 4d24321
Show file tree
Hide file tree
Showing 12 changed files with 350 additions and 451 deletions.
20 changes: 10 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class PSPDFKitView extends React.Component {
if (Platform.OS === "android") {
UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.pdfView),
UIManager.RCTPSPDFKitView.Commands.enterAnnotationCreationMode,
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.enterAnnotationCreationMode,
[]
);
} else if (Platform.OS === "ios") {
Expand All @@ -110,7 +110,7 @@ class PSPDFKitView extends React.Component {
if (Platform.OS === "android") {
UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.pdfView),
UIManager.RCTPSPDFKitView.Commands.exitCurrentlyActiveMode,
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.exitCurrentlyActiveMode,
[]
);
} else if (Platform.OS === "ios") {
Expand All @@ -127,7 +127,7 @@ class PSPDFKitView extends React.Component {
if (Platform.OS === "android") {
UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.pdfView),
UIManager.RCTPSPDFKitView.Commands.saveCurrentDocument,
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.saveCurrentDocument,
[]
);
} else if (Platform.OS === "ios") {
Expand Down Expand Up @@ -158,7 +158,7 @@ class PSPDFKitView extends React.Component {

UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.pdfView),
UIManager.RCTPSPDFKitView.Commands.getAnnotations,
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.getAnnotations,
[requestId, pageIndex, type]
);

Expand All @@ -181,7 +181,7 @@ class PSPDFKitView extends React.Component {
if (Platform.OS === "android") {
UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.pdfView),
UIManager.RCTPSPDFKitView.Commands.addAnnotation,
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.addAnnotation,
[annotation]
);
} else if (Platform.OS === "ios") {
Expand All @@ -201,7 +201,7 @@ class PSPDFKitView extends React.Component {
if (Platform.OS === "android") {
UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.pdfView),
UIManager.RCTPSPDFKitView.Commands.removeAnnotation,
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.removeAnnotation,
[annotation]
);
} else if (Platform.OS === "ios") {
Expand Down Expand Up @@ -229,7 +229,7 @@ class PSPDFKitView extends React.Component {

UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.pdfView),
UIManager.RCTPSPDFKitView.Commands.getAllUnsavedAnnotations,
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.getAllUnsavedAnnotations,
[requestId]
);

Expand All @@ -250,7 +250,7 @@ class PSPDFKitView extends React.Component {
if (Platform.OS === "android") {
UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.pdfView),
UIManager.RCTPSPDFKitView.Commands.addAnnotations,
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.addAnnotations,
[annotations]
);
} else if (Platform.OS === "ios") {
Expand Down Expand Up @@ -281,7 +281,7 @@ class PSPDFKitView extends React.Component {

UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.pdfView),
UIManager.RCTPSPDFKitView.Commands.getFormFieldValue,
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.getFormFieldValue,
[requestId, fullyQualifiedName]
);

Expand All @@ -304,7 +304,7 @@ class PSPDFKitView extends React.Component {
if (Platform.OS === "android") {
UIManager.dispatchViewManagerCommand(
findNodeHandle(this.refs.pdfView),
UIManager.RCTPSPDFKitView.Commands.setFormFieldValue,
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.setFormFieldValue,
[fullyQualifiedName, value]
);
} else if (Platform.OS === "ios") {
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.24.0",
"version": "1.24.1",
"description": "A React Native module for the PSPDFKit library.",
"keywords": [
"react native",
Expand Down
Loading

0 comments on commit 4d24321

Please sign in to comment.