react-native-signature-canvas icon indicating copy to clipboard operation
react-native-signature-canvas copied to clipboard

Background & Overlay Image Source - From File

Open Panthjeet opened this issue 4 years ago • 4 comments

Is there a way to use an image from local directories instead of a URL?

Panthjeet avatar Oct 01 '21 09:10 Panthjeet

You can convert local files to url using

YanYuanFE avatar Oct 24 '21 07:10 YanYuanFE

It looks like the rest of your response was cut off.

Panthjeet avatar Nov 02 '21 21:11 Panthjeet

@Panthjeet I have the same problem. did you get a solution?

IreNadee avatar Dec 08 '21 04:12 IreNadee

import square from '../../../assets/images/quesImg/square.png'; const imgUrl = Image.resolveAssetSource(square).uri; <SignatureScreen ref={ref} overlaySrc={imgUrl} overlayWidth={imgWidth} overlayHeight={imgHeight} webStyle={style} onOK={handleOK} /> Using this I was able to load the image.

IreNadee avatar Dec 08 '21 06:12 IreNadee