// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. /* eslint-disable new-cap */ import React, {memo} from 'react'; import {Touchable, TouchableOpacity, TouchableNativeFeedback, TouchableWithoutFeedback, View, type StyleProp, type ViewStyle} from 'react-native'; type TouchableProps = Touchable & { children: React.ReactNode | React.ReactNode[]; borderlessRipple?: boolean; rippleRadius?: number; style?: StyleProp; testID: string; type: 'native' | 'opacity' | 'none'; underlayColor: string; } const TouchableWithFeedbackAndroid = ({borderlessRipple = false, children, rippleRadius, testID, type = 'native', underlayColor, ...props}: TouchableProps) => { switch (type) { case 'native': return ( {children} ); case 'opacity': return ( {children} ); default: return ( {children} ); } }; export default memo(TouchableWithFeedbackAndroid);