Skip to content

Commit 63b6c50

Browse files
committed
Don't animate disabled buttons
1 parent 9d256ae commit 63b6c50

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/react-native-gesture-handler/apple/RNGestureHandlerButton.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ - (void)animateTarget:(RNGHUIView *)target
304304

305305
- (void)handleAnimatePressIn
306306
{
307+
if (!_userEnabled) {
308+
return;
309+
}
310+
307311
if (_pendingPressOutBlock) {
308312
dispatch_block_cancel(_pendingPressOutBlock);
309313
_pendingPressOutBlock = nil;

0 commit comments

Comments
 (0)