Closed fatihkayan20 closed 3 years ago
Dear @fatihkayan20, thank you for your submission! Unfortunately, the code you shared is not reproducible (I have no idea what HTML you are rendering in post.content
). Please follow our guidelines:
react-native-webview
and @native-html/iframe-plugin
.^6.0.5
is not a version, but a semantic version range. We need the version that you have actually installed. Check your package.lock
or yarn.lock
file to know exactly which version you have installed. I am closing now, but if you provide enough information so that we can investigate the issue on our end, I will reopen.
Decision Table
<yyy>
is not rendered”Good Faith Declaration
Description
<RenderHTML ignoredStyles={["height"]} renderers={renderers} WebView={WebView} customHTMLElementModels={customHTMLElementModels} defaultWebViewProps={{}} renderersProps={{ iframe: { scalesPageToFit: true, webViewProps: { allow: "encrypted-media *", allowtransparency: true, scalesPageToFit: true, useWebKit: true, }, }, a: { onPress: (_, href) => { handleLinkPress(href); }, }, }} source={{ html: post.content ? post.content : "<p></p>", }} {...{ tagsStyles: { ...tagsStyles, ...{ p: { marginBottom: isPreview ? 0 : -5, }, }, }, contentWidth: width - 30, }} />
I have like this code, I can show youtube and spotify embeds but twitter embed now working. It return url text
React Native Information
RNRH Version
^6.0.5
Tested Platforms
Reproduction Platforms
Minimal, Reproducible Example
<RenderHTML ignoredStyles={["height"]} renderers={renderers} WebView={WebView} customHTMLElementModels={customHTMLElementModels} defaultWebViewProps={{}} renderersProps={{ iframe: { scalesPageToFit: true, webViewProps: { allow: "encrypted-media *", allowtransparency: true, scalesPageToFit: true, useWebKit: true, }, }, a: { onPress: (_, href) => { handleLinkPress(href); }, }, }} source={{ html: post.content ? post.content : "<p></p>", }} {...{ tagsStyles: { ...tagsStyles, ...{ p: { marginBottom: isPreview ? 0 : -5, }, }, }, contentWidth: width - 30, }} />
Additional Notes
No response