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}
|
||||
onMessage={__handleOnLinkPress}
|
||||
renderLoading={() => <CommentPlaceHolder />}
|
||||
customScript={script.toString()}
|
||||
customScript={script}
|
||||
startInLoadingState={true}
|
||||
onShouldStartLoadWithRequest={false}
|
||||
scrollEnabled={false}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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 ? <CommentPlaceHolder /> : <PostPlaceHolder />)}
|
||||
startInLoadingState={true}
|
||||
onShouldStartLoadWithRequest={false}
|
||||
|
Loading…
Reference in New Issue
Block a user