fix key props on customrenderer comments

This commit is contained in:
feruz 2020-01-09 05:38:25 +02:00
parent 513d7b7262
commit 2e09e82ac0
2 changed files with 3 additions and 5 deletions

View File

@ -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}

View File

@ -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) {