Rashhh Rashhh - 5 months ago 37
Android Question

Get recently clicked image from camera on image view in react-native

I am implementing camera in my react native application. I want to show the recently captured image from that camera in a small image view on the same screen after click. But I am not getting how do I access the recently clicked image. Whenever any new image is clicked through phone it has been given a default random name, how do I refer it in image view's source?Please suggest me some way to do that.


camera.capture() returns path of the captured image. Use that to show in Image component.

<Image source={{uri: data.path}} style={{width: 100, height: 100}} />