pavelbabenko / react-native-awesome-gallery

Performant, native-like, and well-customizable gallery for React Native.
MIT License
498 stars 54 forks source link

Question: can I get access to current scale without use events? #64

Closed dguerreros93 closed 3 months ago

dguerreros93 commented 11 months ago

I'm using a renderItem and I added description, but I wanna hide the text when scale is different to 1.

I'm using onScaleStart and onScaleEnd and its working, but when I trigger a doubleTap, I don´t have any way to validate inside this event that the scale is 1 or not.

pavelbabenko commented 3 months ago

@dguerreros93 Added params to onDoubleTap(toScale: number) and onScaleStart(scale: number) in v0.4.1. Hope that helps!