Skip to content

Commit 46cde1a

Browse files
maxbbbibrahimtaveras00
authored andcommitted
change removed private api access for button gesture (#6718)
1 parent ec0651b commit 46cde1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/Button.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Button : RCTView {
158158
}
159159
if let touch = touches.first {
160160
let location = touch.location(in: self)
161-
onCancel(["close":Button.isClose(locationA: location, locationB: tapLocation!), "state": self.longPress?.value(forKey: "_state")])
161+
onCancel(["close":Button.isClose(locationA: location, locationB: tapLocation!), "state": self.longPress?.state ?? UIGestureRecognizer.State.cancelled])
162162
}
163163
if shouldLongPressHoldPress == false {
164164
animator = animateTapEnd(duration: pressOutDuration == -1 ? duration : pressOutDuration)

0 commit comments

Comments
 (0)