react-native-image-view icon indicating copy to clipboard operation
react-native-image-view copied to clipboard

Can I pass android Image URI

Open dhanababum opened this issue 7 years ago • 2 comments

Right now I can see image view using http link, But I need to pass android Image URI. For example it show image view when the user selects image from Gallery. Is this working right now ?

dhanababum avatar May 14 '18 18:05 dhanababum

@dhanababum It looks like you can pass all images in you gallery to images prop in format described in docs and when user taps on image just pass image index to ImageView via setState like:

this.setState({imageIndex: index, imageViewVisible: true})

antonKalinin avatar May 15 '18 19:05 antonKalinin

Thanks for Instant reply, I have tried with content:// image path, But it doesn't work. Can you please check from your end, is that working ?

dhanababum avatar May 16 '18 16:05 dhanababum