We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec0651b commit 46cde1aCopy full SHA for 46cde1a
ios/Button.swift
@@ -158,7 +158,7 @@ class Button : RCTView {
158
}
159
if let touch = touches.first {
160
let location = touch.location(in: self)
161
- onCancel(["close":Button.isClose(locationA: location, locationB: tapLocation!), "state": self.longPress?.value(forKey: "_state")])
+ onCancel(["close":Button.isClose(locationA: location, locationB: tapLocation!), "state": self.longPress?.state ?? UIGestureRecognizer.State.cancelled])
162
163
if shouldLongPressHoldPress == false {
164
animator = animateTapEnd(duration: pressOutDuration == -1 ? duration : pressOutDuration)
0 commit comments