@@ -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" ) {
0 commit comments