react-native-shine-button icon indicating copy to clipboard operation
react-native-shine-button copied to clipboard

How can I introduce an external image as a shape?

Open roots-ai opened this issue 6 years ago • 6 comments

Can you please guide or help in writing RNImageHelper that can be similar to RNVectorHelper?

roots-ai avatar Nov 23 '18 14:11 roots-ai

Thanks @roots-ai for raising the query. External Image is not supported currently. Earlier I have tried a lot but with no success.

Thanks </ Pranav >

prscX avatar Nov 23 '18 14:11 prscX

Anything that can be learnt from https://www.npmjs.com/package/react-native-sparkbutton ?

roots-ai avatar Nov 23 '18 17:11 roots-ai

Thanks @root-ai for sharing the reference. I will go through the same and will share findings.

Thanks </ Pranav >

prscX avatar Nov 24 '18 02:11 prscX

Thanks. Awaiting and looking forward.

roots-ai avatar Nov 25 '18 17:11 roots-ai

Any updates here?

roots-ai avatar Jan 11 '19 19:01 roots-ai

Hi @root-ai: I have gone through the shared library. Apparently it is non native bridge library [JS Based]. Handling custom images in JS is not an challenge. I am afraid to say that based on my past efforts, I have not succeeded in passing image from JS to Native, however we have a workaround: you can copy the image in iOS or Android native assets and can use the same. Please refer README for the same.

Let me know in case you are not able to set an image through native assets.

Thanks </ Pranav >

prscX avatar Jan 13 '19 18:01 prscX