import { Platform, Pressable, StyleSheet, Text } from 'react-native'; import { BUTTON_BACKGROUND_COLOR, LABEL_COLOR, PRESSABLE_RIPPLE_CONFIG } from './constants'; interface Props { label: string; onPress: () => void; } export const CustomListButton = ({ label, onPress }: Props) => { return ( [styles.button, pressed && styles.pressed]} > {label} ); }; const styles = StyleSheet.create({ button: { backgroundColor: BUTTON_BACKGROUND_COLOR, borderRadius: 20, margin: 0, overflow: 'hidden', padding: 10, }, label: { color: LABEL_COLOR, fontSize: 18, fontWeight: 'bold', margin: 2, }, pressed: { opacity: Platform.select({ android: 1, default: 0.4, }), }, });