react-native-html-to-pdf
react-native-html-to-pdf copied to clipboard
How to add <img> html tag with local image in RN project folder?
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
with a background image but only if it is a url not with local images. Can you help me?
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
<img src="${ Image.resolveAssetSource( require('assets/images/apple.png'), ).uri }" />
and import Image from react-native
import {Image} from 'react-native';