Skip to content

Commit 59bd235

Browse files
authored
Merge pull request #3 from TangleInc/FRO-1762-giant-fonts
FRO-1762 Native Apps - fonts are shrunken
2 parents 6cc617f + 291e0dc commit 59bd235

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WKWebView.ios.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)