From 8e7d970ac43373f93bf0e943d5edd2061eafefce Mon Sep 17 00:00:00 2001 From: Rui Ying Date: Sat, 4 Mar 2023 19:48:06 -0800 Subject: [PATCH] Adjust Touchable opacity --- src/components/CardWrapper.tsx | 2 ++ src/components/Touchable.tsx | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/CardWrapper.tsx b/src/components/CardWrapper.tsx index 217d00a1..d43a95ce 100644 --- a/src/components/CardWrapper.tsx +++ b/src/components/CardWrapper.tsx @@ -138,6 +138,8 @@ const CardWrapper: React.FC< ]} dragEnabled={!selectionMode && dragEnabled}> = ({type, ...props}) => { + TouchableHighlightProps & { + type?: 'opacity' | 'highlight'; + highlightColorOpacity?: number; + } +> = ({type, highlightColorOpacity, ...props}) => { const theme = useTheme(); return Platform.OS === 'android' ? ( @@ -19,7 +22,9 @@ const Touchable: React.FC<