Skip to content

Commit 4d24321

Browse files
authored
Merge pull request #193 from PSPDFKit/rad/update-rn-0.59.0
Update the iOS and Android Catalog for React Native 0.59.9
2 parents accdd0b + 46a8ac7 commit 4d24321

File tree

12 files changed

+350
-451
lines changed

12 files changed

+350
-451
lines changed

index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class PSPDFKitView extends React.Component {
9393
if (Platform.OS === "android") {
9494
UIManager.dispatchViewManagerCommand(
9595
findNodeHandle(this.refs.pdfView),
96-
UIManager.RCTPSPDFKitView.Commands.enterAnnotationCreationMode,
96+
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.enterAnnotationCreationMode,
9797
[]
9898
);
9999
} else if (Platform.OS === "ios") {
@@ -110,7 +110,7 @@ class PSPDFKitView extends React.Component {
110110
if (Platform.OS === "android") {
111111
UIManager.dispatchViewManagerCommand(
112112
findNodeHandle(this.refs.pdfView),
113-
UIManager.RCTPSPDFKitView.Commands.exitCurrentlyActiveMode,
113+
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.exitCurrentlyActiveMode,
114114
[]
115115
);
116116
} else if (Platform.OS === "ios") {
@@ -127,7 +127,7 @@ class PSPDFKitView extends React.Component {
127127
if (Platform.OS === "android") {
128128
UIManager.dispatchViewManagerCommand(
129129
findNodeHandle(this.refs.pdfView),
130-
UIManager.RCTPSPDFKitView.Commands.saveCurrentDocument,
130+
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.saveCurrentDocument,
131131
[]
132132
);
133133
} else if (Platform.OS === "ios") {
@@ -158,7 +158,7 @@ class PSPDFKitView extends React.Component {
158158

159159
UIManager.dispatchViewManagerCommand(
160160
findNodeHandle(this.refs.pdfView),
161-
UIManager.RCTPSPDFKitView.Commands.getAnnotations,
161+
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.getAnnotations,
162162
[requestId, pageIndex, type]
163163
);
164164

@@ -181,7 +181,7 @@ class PSPDFKitView extends React.Component {
181181
if (Platform.OS === "android") {
182182
UIManager.dispatchViewManagerCommand(
183183
findNodeHandle(this.refs.pdfView),
184-
UIManager.RCTPSPDFKitView.Commands.addAnnotation,
184+
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.addAnnotation,
185185
[annotation]
186186
);
187187
} else if (Platform.OS === "ios") {
@@ -201,7 +201,7 @@ class PSPDFKitView extends React.Component {
201201
if (Platform.OS === "android") {
202202
UIManager.dispatchViewManagerCommand(
203203
findNodeHandle(this.refs.pdfView),
204-
UIManager.RCTPSPDFKitView.Commands.removeAnnotation,
204+
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.removeAnnotation,
205205
[annotation]
206206
);
207207
} else if (Platform.OS === "ios") {
@@ -229,7 +229,7 @@ class PSPDFKitView extends React.Component {
229229

230230
UIManager.dispatchViewManagerCommand(
231231
findNodeHandle(this.refs.pdfView),
232-
UIManager.RCTPSPDFKitView.Commands.getAllUnsavedAnnotations,
232+
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.getAllUnsavedAnnotations,
233233
[requestId]
234234
);
235235

@@ -250,7 +250,7 @@ class PSPDFKitView extends React.Component {
250250
if (Platform.OS === "android") {
251251
UIManager.dispatchViewManagerCommand(
252252
findNodeHandle(this.refs.pdfView),
253-
UIManager.RCTPSPDFKitView.Commands.addAnnotations,
253+
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.addAnnotations,
254254
[annotations]
255255
);
256256
} else if (Platform.OS === "ios") {
@@ -281,7 +281,7 @@ class PSPDFKitView extends React.Component {
281281

282282
UIManager.dispatchViewManagerCommand(
283283
findNodeHandle(this.refs.pdfView),
284-
UIManager.RCTPSPDFKitView.Commands.getFormFieldValue,
284+
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.getFormFieldValue,
285285
[requestId, fullyQualifiedName]
286286
);
287287

@@ -304,7 +304,7 @@ class PSPDFKitView extends React.Component {
304304
if (Platform.OS === "android") {
305305
UIManager.dispatchViewManagerCommand(
306306
findNodeHandle(this.refs.pdfView),
307-
UIManager.RCTPSPDFKitView.Commands.setFormFieldValue,
307+
UIManager.getViewManagerConfig('RCTPSPDFKitView').Commands.setFormFieldValue,
308308
[fullyQualifiedName, value]
309309
);
310310
} else if (Platform.OS === "ios") {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

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

0 commit comments

Comments
 (0)