You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you be able to provide more details on that? Do you want the scaling to stop at a certain scale level or have a min distance between fingers at which the pinch recognizer would activate?
If the former is your choice you can achieve that by using Animated.interpolate:
Don't try to run this code as I haven't tested it, just made it to mark my idea. The value that you should use in transform (valueUsedInStyles) is going to be clamped at 0.5 and 1.5
Activity
kmagiera commentedon Dec 13, 2017
Would you be able to provide more details on that? Do you want the scaling to stop at a certain scale level or have a min distance between fingers at which the pinch recognizer would activate?
If the former is your choice you can achieve that by using Animated.interpolate:
Don't try to run this code as I haven't tested it, just made it to mark my idea. The value that you should use in transform (
valueUsedInStyles) is going to be clamped at 0.5 and 1.5jhalborg commentedon Dec 14, 2017
The former, and of course - had forgotten about interpolation. I'm sorry, I'm still a bit new to the Animated API.
Thanks 😁
[iOS] Fix callback crashes from detached gesture recognizers (#4679)
[iOS] Fix callback crashes from detached gesture recognizers (#4679)