import { BorderlessButton } from 'react-native-gesture-handler'; import React from 'react'; import { View, StyleSheet } from 'react-native'; import I18n from '../../../../i18n'; import { CustomIcon, TIconsName } from '../../../CustomIcon'; import { useTheme } from '../../../../theme'; export interface IBaseButton { testID: string; accessibilityLabel: string; icon: TIconsName; color?: string; onPress(): void; } export const hitSlop = { top: 16, right: 16, bottom: 16, left: 16 }; export const BaseButton = ({ accessibilityLabel, icon, color, testID, onPress }: IBaseButton) => { const { colors } = useTheme(); return ( onPress()} testID={testID} hitSlop={hitSlop}> ); }; const styles = StyleSheet.create({ button: { alignItems: 'center', justifyContent: 'center', width: 24, height: 24 } });