react-native-lightbox
react-native-lightbox copied to clipboard
let overlay can be zoomed && add renderMask func && add gallery mode.
The overlay can be zoomed and drag. Add doubleTap feature to zoom in/out.
Good PR! Thanks! @oblador Is it possible to merge this?
should be merged +1
should be merged +1
add renderMask func which can be used with renderContent together to make image->video easier.
for example:
renderMask
and
renderContent
add gallery mode. <Lightbox ... galleryMode={true} GKey={'xxx'}>

Hi @ZackLeonardo Could you explain how the gallery works? At the moment I'm using the Carousel component inside the lightbox and it offers a nice transition between images. Is yours offering a transition? Also, if I have a flatlist with elements, How I can pick one element and show it in the layout and start the gallery from that index? Thanks!
@hoscarcito This PR offers a transition. I have store the indexes of all children props of lightbox in global map, which the key is GKey props and the value is array of indexes. When one children component is selected, it will show in lightboxOverlay. When swiped change the children component to make it a transition. This gallery mode PR is offering a simple transition now, it will be better performed such as the other carousel components.
I will give it a try! I'm using the gallery solution provided in the docs (nice transition) but to make it work I need to disable the swipeToDismiss as It's messing it with the nested panResponders. Also, I'm showing a specific footer for each image so I will need to modify your code to check which item it's showing. Thank you!!!
should be merged +1
Just be curious if the useNativeDriver
prop could be supported
should be merged +1