-
Notifications
You must be signed in to change notification settings - Fork 269
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
How to add <img> html tag with local image in RN project folder? #302
Comments
Have you got any solution ? |
I managed to get custom fonts and images working by using base64 formatted assets |
Any one has any idea to resolve this issue? |
just do something like this
and import Image from react-native |
@Lucas-Perazzo @WilliamOchy Hi, Do you know how to get images in local Documents directory to show? |
I am able to get images stored in the local Documents directory on iOS to show by changing the following code in the RNHTLtoPDF.m file (lines 174-184) and writing the HTML string to a file called "html2pdf.html" saved to the Documents/htmlDirectory/ folder:
If someone can show how this could be done in Android as well.... |
I am creating a pdf and I need to use an image that I have saved in my project.
I use the img tag but it doesn't show anything, the only solution I found is to use a
The text was updated successfully, but these errors were encountered: