mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-03 11:34:30 +03:00
fix key props on customrenderer comments
This commit is contained in:
parent
513d7b7262
commit
2e09e82ac0
@ -156,7 +156,7 @@ const CommentBody = ({
|
|||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
br: (htmlAttribs, children, passProps) => {
|
br: (htmlAttribs, children, convertedCSSStyles, passProps) => {
|
||||||
return <Text {...passProps}>{'\n'}</Text>;
|
return <Text {...passProps}>{'\n'}</Text>;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -166,7 +166,6 @@ const CommentBody = ({
|
|||||||
return (
|
return (
|
||||||
<HTML
|
<HTML
|
||||||
html={body}
|
html={body}
|
||||||
key={`key-${created.toString()}`}
|
|
||||||
onLinkPress={(evt, href, hrefAtr) => _handleOnLinkPress(evt, href, hrefAtr)}
|
onLinkPress={(evt, href, hrefAtr) => _handleOnLinkPress(evt, href, hrefAtr)}
|
||||||
containerStyle={styles.commentContainer}
|
containerStyle={styles.commentContainer}
|
||||||
textSelectable={textSelectable}
|
textSelectable={textSelectable}
|
||||||
|
@ -7,9 +7,8 @@ for (i = 0; i < images.length; i++) {
|
|||||||
}
|
}
|
||||||
var resultStr = JSON.stringify(JSON.stringify(result)); // workaround
|
var resultStr = JSON.stringify(JSON.stringify(result)); // workaround
|
||||||
var message = 'window.ReactNativeWebView.postMessage(' + resultStr + ')';
|
var message = 'window.ReactNativeWebView.postMessage(' + resultStr + ')';
|
||||||
if (images[i].getAttribute("class").indexOf("video-thumbnail")<0) {
|
|
||||||
images[i].setAttribute("onClick", message);
|
images[i].setAttribute("onClick", message);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('click', function(event) {
|
document.addEventListener('click', function(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user