import React from 'react';
import { TouchableOpacity, Text, StyleSheet, ViewStyle } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import { useTheme } from '../theme/context';
interface ButtonProps {
title: string;
onPress: () => void;
variant?: 'primary' | 'secondary';
style?: ViewStyle;
}
export function Button({ title, onPress, variant = 'primary', style }: ButtonProps) {
const theme = useTheme();
if (variant === 'secondary') {
return (
{title}
);
}
// Primary variant with gradient
return (
{title}
);
}
const styles = StyleSheet.create({
touchable: {
shadowColor: '#FF4500',
shadowOffset: { width: 0, height: 4 },
shadowOpacity: 0.3,
shadowRadius: 8,
elevation: 4,
},
container: {
paddingVertical: 12,
paddingHorizontal: 20,
alignItems: 'center',
justifyContent: 'center',
},
text: {
fontSize: 14,
fontWeight: '700',
},
});