Skip to content

Commit 9ca79ca

Browse files
committed
Switch from TouchableNativeFeedback to TouchableHighlight ;-;
1 parent 5646bdf commit 9ca79ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/containers/message/Touch.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {
77
type AccessibilityActionEvent,
88
type AccessibilityActionInfo,
99
TouchableOpacity,
10+
TouchableHighlight,
1011
type TouchableWithoutFeedbackProps
1112
} from 'react-native';
12-
import { TouchableNativeFeedback } from 'react-native-gesture-handler';
1313

1414
import { useTheme } from '../../theme';
1515
import { isIOS } from '../../lib/methods/helpers';
@@ -27,7 +27,7 @@ export interface ITouchProps extends TouchableWithoutFeedbackProps {
2727
android_rippleColor?: string;
2828
}
2929

30-
const Component = isIOS ? TouchableOpacity : TouchableNativeFeedback;
30+
const Component = isIOS ? TouchableOpacity : TouchableHighlight;
3131

3232
const Touch = React.forwardRef<View, ITouchProps>(
3333
(
@@ -80,7 +80,7 @@ const Touch = React.forwardRef<View, ITouchProps>(
8080
};
8181
const touchableProps = isIOS
8282
? {}
83-
: { background: TouchableNativeFeedback.Ripple(android_rippleColor ?? colors.surfaceNeutral, false), useForeground: false };
83+
: { underlayColor: android_rippleColor ?? colors.surfaceNeutral, activeOpacity: 1 };
8484

8585
return (
8686
<Component

0 commit comments

Comments
 (0)