mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 05:13:04 +03:00
Merge pull request #1491 from esteemapp/mmore
remove converting script to string
This commit is contained in:
commit
ade986e24f
Binary file not shown.
@ -334,7 +334,7 @@ const CommentBody = ({
|
|||||||
customStyle={customStyle}
|
customStyle={customStyle}
|
||||||
onMessage={__handleOnLinkPress}
|
onMessage={__handleOnLinkPress}
|
||||||
renderLoading={() => <CommentPlaceHolder />}
|
renderLoading={() => <CommentPlaceHolder />}
|
||||||
customScript={script.toString()}
|
customScript={script}
|
||||||
startInLoadingState={true}
|
startInLoadingState={true}
|
||||||
onShouldStartLoadWithRequest={false}
|
onShouldStartLoadWithRequest={false}
|
||||||
scrollEnabled={false}
|
scrollEnabled={false}
|
||||||
|
@ -5,9 +5,10 @@ for (i = 0; i < images.length; i++) {
|
|||||||
type: 'image',
|
type: 'image',
|
||||||
href: images[i].getAttribute("src") || ''
|
href: images[i].getAttribute("src") || ''
|
||||||
}
|
}
|
||||||
var resultStr = JSON.stringify(JSON.stringify(result)); // workaround
|
// workaround
|
||||||
var message = 'window.ReactNativeWebView.postMessage(' + resultStr + ')';
|
var resultStr = JSON.stringify(JSON.stringify(result));
|
||||||
|
|
||||||
|
var message = 'window.ReactNativeWebView.postMessage(' + resultStr + ')';
|
||||||
images[i].setAttribute("onClick", message);
|
images[i].setAttribute("onClick", message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -325,7 +325,7 @@ const PostBody = ({
|
|||||||
style={{ width: isComment ? WIDTH - (32 + 29 * commentDepth) : WIDTH - 32 }}
|
style={{ width: isComment ? WIDTH - (32 + 29 * commentDepth) : WIDTH - 32 }}
|
||||||
customStyle={customStyle}
|
customStyle={customStyle}
|
||||||
onMessage={_handleOnLinkPress}
|
onMessage={_handleOnLinkPress}
|
||||||
customScript={script.toString()}
|
customScript={script}
|
||||||
renderLoading={() => (isComment ? <CommentPlaceHolder /> : <PostPlaceHolder />)}
|
renderLoading={() => (isComment ? <CommentPlaceHolder /> : <PostPlaceHolder />)}
|
||||||
startInLoadingState={true}
|
startInLoadingState={true}
|
||||||
onShouldStartLoadWithRequest={false}
|
onShouldStartLoadWithRequest={false}
|
||||||
|
Loading…
Reference in New Issue
Block a user