import { View, Text, TouchableOpacity } from 'react-native';

const CustomButton = ({ title, style, textstyle, onPress , disabled}) => {
    return (
        <TouchableOpacity disabled={disabled} onPress={onPress}>
            <View style={{ marginHorizontal: 0, paddingVertical: 10, ...style }}>
                <Text style={{ textAlign: 'center', ...textstyle }}>{title}</Text>
            </View>
        </TouchableOpacity>
    );
};

export default CustomButton;
