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>
|
||||
);
|
||||
},
|
||||
br: (htmlAttribs, children, passProps) => {
|
||||
br: (htmlAttribs, children, convertedCSSStyles, passProps) => {
|
||||
return <Text {...passProps}>{'\n'}</Text>;
|
||||
},
|
||||
};
|
||||
@ -166,7 +166,6 @@ const CommentBody = ({
|
||||
return (
|
||||
<HTML
|
||||
html={body}
|
||||
key={`key-${created.toString()}`}
|
||||
onLinkPress={(evt, href, hrefAtr) => _handleOnLinkPress(evt, href, hrefAtr)}
|
||||
containerStyle={styles.commentContainer}
|
||||
textSelectable={textSelectable}
|
||||
|
@ -7,9 +7,8 @@ for (i = 0; i < images.length; i++) {
|
||||
}
|
||||
var resultStr = JSON.stringify(JSON.stringify(result)); // workaround
|
||||
var message = 'window.ReactNativeWebView.postMessage(' + resultStr + ')';
|
||||
if (images[i].getAttribute("class").indexOf("video-thumbnail")<0) {
|
||||
|
||||
images[i].setAttribute("onClick", message);
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('click', function(event) {
|
||||
|
Loading…
Reference in New Issue
Block a user