import React from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; import { QuantitySelectorProps } from './quantitySelector.props'; import { getStyles } from './quantitySelector.styles'; import { useAppTheme } from '@theme'; export const QuantitySelector: React.FC = ({ value, onIncrement, onDecrement, min = 0, max = 99, }) => { const { colors } = useAppTheme(); const styles = getStyles(colors); return ( - {value} = max && styles.buttonDisabled]} onPress={onIncrement} disabled={value >= max} activeOpacity={0.7} > + ); };