justhive / react-native-view-editor

A simple wrapper for being able to rotate, pan, and resize a child view or image with animations.
https://medium.com/@sscaff1/react-native-image-panning-zooming-832aef361c87#.dyvem0jr4
29 stars 16 forks source link

How to capture the image? #21

Open hecbuma opened 7 years ago

hecbuma commented 7 years ago

Hi, first of all, your library it's pretty cool. Second, I'm trying to use it in a small project and I'm wondering how can I capture the image and get resulting image.

isaachinman commented 6 years ago

@hecbuma Did you ever figure this out? If we can't capture the resulting image, this library isn't much use.

brocoder86 commented 6 years ago

you can use react-native-view-shot and take a screen shot of the view containing the image

nazrdogan commented 6 years ago

@brocoder86 I changed library a little bit and integrated with view-shot but if I get shot from mask I m getting only mask to image. if mask have background color its give me this otherwise white bg. so its not ok for this purpose. it because of background image and mask in same level in view hierachy. @isaachinman I have mask full view and I m getting snapshot of whole view editor. its working for me. if you still need. I can share code.

isaachinman commented 6 years ago

Thanks, but I found a different approach.

galvanu commented 5 years ago

Can you please share your approach @isaachinman? I'm facing the same issue

isaachinman commented 5 years ago

Hey @galvanu - I ended up creating image-editing UI from scratch via some low-level RN APIs. Good luck.