From 82c4e4a7d506773396ea52f101b5d9ca7f895173 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Fri, 20 Dec 2024 02:17:58 -0500 Subject: [PATCH] Fix transform on GestureHandlerButton on Android (#3252) ## Description RN now handles view transform in onAfterUpdateTransaction https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java#L634 so we need to make sure to call the super method. ## Test plan Tested that setting transform on button component now works on Android. --- .../gesturehandler/react/RNGestureHandlerButtonViewManager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt b/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt index c5226bc19..678eb700e 100644 --- a/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt +++ b/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt @@ -126,6 +126,8 @@ class RNGestureHandlerButtonViewManager : ViewGroupManager(), R } override fun onAfterUpdateTransaction(view: ButtonViewGroup) { + super.onAfterUpdateTransaction(view) + view.updateBackground() }