react-native-image-viewer | 🚀 tiny & fast lib for react native image viewer pan and zoom | Frontend Framework library
kandi X-RAY | react-native-image-viewer Summary
kandi X-RAY | react-native-image-viewer Summary
tiny & fast lib for react native image viewer pan and zoom
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-native-image-viewer
react-native-image-viewer Key Features
react-native-image-viewer Examples and Code Snippets
Community Discussions
Trending Discussions on react-native-image-viewer
QUESTION
how get url or index of image in array,and show console.log(index or url of image) when use onSwipeDown props in module react-native-image-viewer . thanks! https://github.com/ascoders/react-native-image-viewer.
...ANSWER
Answered 2018-Apr-27 at 05:08Hi and welcome to Stack Overflow! It looks like the library doesn't provide an API for the above functionality. So it looks like you're going to have to maintain a state to store the currently selected index using onChange
prop of the component, and when onSwipeDown
is called, get the index ( and the URL ) from the state.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-image-viewer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page