From 5dca32ae552e8437c18638a6c07d7512d6feae0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dog=CC=86us=CC=A7=20Erdem?= <48646654+DogusErdem@users.noreply.github.com> Date: Wed, 7 Feb 2024 10:13:34 +0300 Subject: [PATCH] fix: Android ripple effect removed --- src/components/Button/Button.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index 2d13a2b..d6bfbce 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -57,9 +57,6 @@ export const Button: FCCWD = ( setIsPressed(true)} onPressOut={() => setIsPressed(false)} - android_ripple={{ - color: viewStyles.focused.container.backgroundColor, - }} style={({ pressed }) => [ styles.container, @@ -72,13 +69,10 @@ export const Button: FCCWD = ( : { padding: (fontStyles[size].lineHeight - fontStyles[size].fontSize) / 2 + 10 }, - Platform.OS === 'ios' ? - (pressed ? - viewStyles.focused.container - : - viewStyles.default.container) + (pressed ? + viewStyles.focused.container : - viewStyles.default.container, + viewStyles.default.container), disabled ? viewStyles.disabled.container : null,