Skip to content
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 can I introduce an external image as a shape? #17

Open
roots-ai opened this issue Nov 23, 2018 · 6 comments
Open

How can I introduce an external image as a shape? #17

roots-ai opened this issue Nov 23, 2018 · 6 comments

Comments

@roots-ai
Copy link

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

@roots-ai roots-ai changed the title How can I introduce a external image as a shape? How can I introduce an external image as a shape? Nov 23, 2018
@prscX
Copy link
Owner

prscX commented Nov 23, 2018

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 >

@roots-ai
Copy link
Author

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

@prscX
Copy link
Owner

prscX commented Nov 24, 2018

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

Thanks
</ Pranav >

@roots-ai
Copy link
Author

Thanks. Awaiting and looking forward.

@roots-ai
Copy link
Author

Any updates here?

@prscX
Copy link
Owner

prscX commented Jan 13, 2019

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 >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants