-
-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iframes starting with a two forward slashes src attributes are not rendered #408
Comments
@workhub90 As a starting point to resolve your issue, I suggest you upgrade to the latest 4.2.3 (you'll need to install react-native-webview manually, this was an error on our end breaking semantic versioning!). If that doesn't work out for you, I invite you to provide a full reproduction, see https://github.com/archriss/react-native-render-html/blob/master/CONTRIBUTING.adoc#submitting-a-bug EDIT: the reproduction must include the HTML content that is causing trouble. |
hello @jsamr i've tried your suggestion.
is still same error. does'nt work. i had tested in emulator & real device |
@workhub90 To help you out, I need to know what is the HTML code you are trying to render, that is the content of the string you are passing to html prop (this.props.article.description). |
I am starting to understand; I was confused because you said "the video link", so I thought you were talking about anchors ( |
@jsamr here the html i want to display. you can see here on web everything shown. text, image and youtube video embeded. and yeah i had checked. using <iframe/> element please check images below. |
@workhub90 With all regards, I don't have much time to investigate this issue as it is right now. If you can provide a full reproduction in the form of an expo snack or git repository, I'll be willing to investigate further though. I kindly invite you to follow our contribution guidelines here: https://github.com/archriss/react-native-render-html/blob/master/CONTRIBUTING.adoc#submitting-a-bug |
@workhub90 I reviewed this issue a little further, and realized that the |
@workhub90 In the meantime, you can "fix" the src attribute with |
@workhub90 Version |
wow great, @jsamr thank you for your updated. now its work. |
A fix has been released in v4.2.4 a few moments ago. |
Is there currently any way of displaying an iframe, say, for an embedded YouTube video? The docs are everything but clear on this. Thanks |
Oath
I swear that I have completed these tasks before submitting:
Hello archriss, please help me about this bug or some trouble.
images and text are all displayed successfully. however, only the youtube video link does not appear. any suggestions?
version package react-native-render-html@4.1.2
tested device : emulator & real device.
Here's a quick source:
......
<HTML
html={this.props.article.description}
baseFontStyle={styles.textContent}
onLinkPress={(event, href, htmlAttribs) => this.props.openLink(href)}
/>
.......
The text was updated successfully, but these errors were encountered: