File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ class WKWebView extends React.Component {
216216 /**
217217 * Function that accepts a string that will be passed to the WebView and executed immediately as JavaScript.
218218 */
219- injectJavaScript : PropTypes . string ,
219+ injectJavaScriptCode : PropTypes . string ,
220220 /**
221221 * Sets the JS to be injected when the webpage loads.
222222 */
@@ -339,7 +339,7 @@ class WKWebView extends React.Component {
339339 source = { resolveAssetSource ( source ) }
340340 injectJavaScriptForMainFrameOnly = { this . props . injectJavaScriptForMainFrameOnly }
341341 injectedJavaScriptForMainFrameOnly = { this . props . injectedJavaScriptForMainFrameOnly }
342- injectJavaScript = { this . props . injectJavaScript }
342+ injectJavaScript = { this . props . injectJavaScriptCode }
343343 injectedJavaScript = { this . props . injectedJavaScript }
344344 bounces = { this . props . bounces }
345345 scrollEnabled = { this . props . scrollEnabled }
@@ -448,7 +448,7 @@ class WKWebView extends React.Component {
448448 ) ;
449449 } ;
450450
451- evaluateJavaScript = ( js ) => {
451+ injectJavaScript = ( js ) => {
452452 return WKWebViewManager . evaluateJavaScript ( this . getWebViewHandle ( ) , js ) ;
453453 } ;
454454
You can’t perform that action at this time.
0 commit comments