React-native-reanimated: Programmatically set scale in imageViewer example

Created on 22 Jun 2018  路  4Comments  路  Source: software-mansion/react-native-reanimated

I've added a double tap gesture handler to mimic the iOS native photoviewer behaviour but I'm not sure how to update the scale in my doubletap function. Any pointers?

鉂換uestion

Most helpful comment

That would be a good thing to add to the example. I might take a look at adding it.

All 4 comments

That would be a good thing to add to the example. I might take a look at adding it.

I've tried doing this but the TapGestureHandler doesn't have any location for the double tap so I cannot set it to center the zoom on my finger. https://kmagiera.github.io/react-native-gesture-handler/docs/handler-tap.html

@DylanVann - Did you get a chance to add this to the example?

Closing due to no activity.

Was this page helpful?
0 / 5 - 0 ratings