diff --git a/ios/eSteem.xcworkspace/xcuserdata/f.xcuserdatad/UserInterfaceState.xcuserstate b/ios/eSteem.xcworkspace/xcuserdata/f.xcuserdatad/UserInterfaceState.xcuserstate index 30afb68a0..5e48eb470 100644 Binary files a/ios/eSteem.xcworkspace/xcuserdata/f.xcuserdatad/UserInterfaceState.xcuserstate and b/ios/eSteem.xcworkspace/xcuserdata/f.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/src/components/postElements/body/view/commentBodyView.js b/src/components/postElements/body/view/commentBodyView.js index c959054d4..3e624744e 100644 --- a/src/components/postElements/body/view/commentBodyView.js +++ b/src/components/postElements/body/view/commentBodyView.js @@ -334,7 +334,7 @@ const CommentBody = ({ customStyle={customStyle} onMessage={__handleOnLinkPress} renderLoading={() => } - customScript={script.toString()} + customScript={script} startInLoadingState={true} onShouldStartLoadWithRequest={false} scrollEnabled={false} diff --git a/src/components/postElements/body/view/config.js b/src/components/postElements/body/view/config.js index cccdd3a50..25caddf73 100644 --- a/src/components/postElements/body/view/config.js +++ b/src/components/postElements/body/view/config.js @@ -5,9 +5,10 @@ for (i = 0; i < images.length; i++) { type: 'image', href: images[i].getAttribute("src") || '' } - var resultStr = JSON.stringify(JSON.stringify(result)); // workaround - var message = 'window.ReactNativeWebView.postMessage(' + resultStr + ')'; + // workaround + var resultStr = JSON.stringify(JSON.stringify(result)); + var message = 'window.ReactNativeWebView.postMessage(' + resultStr + ')'; images[i].setAttribute("onClick", message); } diff --git a/src/components/postElements/body/view/postBodyView.js b/src/components/postElements/body/view/postBodyView.js index c382dc392..6b21234ca 100644 --- a/src/components/postElements/body/view/postBodyView.js +++ b/src/components/postElements/body/view/postBodyView.js @@ -325,7 +325,7 @@ const PostBody = ({ style={{ width: isComment ? WIDTH - (32 + 29 * commentDepth) : WIDTH - 32 }} customStyle={customStyle} onMessage={_handleOnLinkPress} - customScript={script.toString()} + customScript={script} renderLoading={() => (isComment ? : )} startInLoadingState={true} onShouldStartLoadWithRequest={false}