Scale event detection in ScrollView for React Native

I would like to implement an image zoom scaling function in React Native.

I start by packing an item into an item. I would like to define a zoom event and then scale the image accordingly.

How do I get the zoom event?

+3


source to share


1 answer


If the image is wrapped in a ScrollView, scaling the ScrollView will enlarge the image as well.



And the onScroll ScrollView function will also detect the zoom event.

+1


source







All Articles