Browse Source

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

Cosmo Wolfe 5 years ago
parent
commit
33f1ee384f
2 changed files with 10 additions and 0 deletions
  1. 5
    0
      src/WebView.android.tsx
  2. 5
    0
      src/WebView.ios.tsx

+ 5
- 0
src/WebView.android.tsx View File

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

+ 5
- 0
src/WebView.ios.tsx View File

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