Kaynağa Gözat

fix(iOS): Call dispatchViewManagerCommand with correct number of arguments (#886)

Cosmo Wolfe 5 yıl önce
ebeveyn
işleme
33f1ee384f
2 değiştirilmiş dosya ile 10 ekleme ve 0 silme
  1. 5
    0
      src/WebView.android.tsx
  2. 5
    0
      src/WebView.ios.tsx

+ 5
- 0
src/WebView.android.tsx Dosyayı Görüntüle

@@ -73,6 +73,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
73 73
     UIManager.dispatchViewManagerCommand(
74 74
       this.getWebViewHandle(),
75 75
       this.getCommands().goForward,
76
+      undefined
76 77
     );
77 78
   };
78 79
 
@@ -80,6 +81,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
80 81
     UIManager.dispatchViewManagerCommand(
81 82
       this.getWebViewHandle(),
82 83
       this.getCommands().goBack,
84
+      undefined
83 85
     );
84 86
   };
85 87
 
@@ -90,6 +92,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
90 92
     UIManager.dispatchViewManagerCommand(
91 93
       this.getWebViewHandle(),
92 94
       this.getCommands().reload,
95
+      undefined
93 96
     );
94 97
   };
95 98
 
@@ -97,6 +100,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
97 100
     UIManager.dispatchViewManagerCommand(
98 101
       this.getWebViewHandle(),
99 102
       this.getCommands().stopLoading,
103
+      undefined
100 104
     );
101 105
   };
102 106
 
@@ -104,6 +108,7 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
104 108
     UIManager.dispatchViewManagerCommand(
105 109
       this.getWebViewHandle(),
106 110
       this.getCommands().requestFocus,
111
+      undefined
107 112
     );
108 113
   };
109 114
 

+ 5
- 0
src/WebView.ios.tsx Dosyayı Görüntüle

@@ -82,6 +82,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
82 82
     UIManager.dispatchViewManagerCommand(
83 83
       this.getWebViewHandle(),
84 84
       this.getCommands().goForward,
85
+      undefined,
85 86
     );
86 87
   };
87 88
 
@@ -92,6 +93,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
92 93
     UIManager.dispatchViewManagerCommand(
93 94
       this.getWebViewHandle(),
94 95
       this.getCommands().goBack,
96
+      undefined,
95 97
     );
96 98
   };
97 99
 
@@ -103,6 +105,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
103 105
     UIManager.dispatchViewManagerCommand(
104 106
       this.getWebViewHandle(),
105 107
       this.getCommands().reload,
108
+      undefined,
106 109
     );
107 110
   };
108 111
 
@@ -113,6 +116,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
113 116
     UIManager.dispatchViewManagerCommand(
114 117
       this.getWebViewHandle(),
115 118
       this.getCommands().stopLoading,
119
+      undefined,
116 120
     );
117 121
   };
118 122
 
@@ -123,6 +127,7 @@ class WebView extends React.Component<IOSWebViewProps, State> {
123 127
     UIManager.dispatchViewManagerCommand(
124 128
       this.getWebViewHandle(),
125 129
       this.getCommands().requestFocus,
130
+      undefined,
126 131
     );
127 132
   };
128 133