From a7ff5ef29ace5fe8ce136f2d6a6ece6c209a0037 Mon Sep 17 00:00:00 2001 From: KJ Shanks Date: Thu, 11 Jan 2024 14:51:08 -0500 Subject: [PATCH] Update native harmony BaseButton to not scale when full width --- .../components/Button/BaseButton/BaseButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/mobile/src/harmony-native/components/Button/BaseButton/BaseButton.tsx b/packages/mobile/src/harmony-native/components/Button/BaseButton/BaseButton.tsx index 9d264381d50..a26f15e4b62 100644 --- a/packages/mobile/src/harmony-native/components/Button/BaseButton/BaseButton.tsx +++ b/packages/mobile/src/harmony-native/components/Button/BaseButton/BaseButton.tsx @@ -78,7 +78,9 @@ export const BaseButton = (props: BaseButtonProps) => { } const animatedStyles = useAnimatedStyle(() => ({ - transform: [{ scale: interpolate(pressed.value, [0, 1], [1, 0.97]) }] + ...(!fullWidth && { + transform: [{ scale: interpolate(pressed.value, [0, 1], [1, 0.97]) }] + }) })) const handleLayoutChange = useCallback((event: LayoutChangeEvent) => {