import { StyleSheet, Text, TouchableOpacity, View, ViewStyle, } from 'react-native'; import React, {FC} from 'react'; import {ColorsScheme, useTheme} from '../../theme/ThemeContext'; import PlayyText from '../PlayyText/PlayyText'; interface ButtonProps { name: string; handlePressButton: () => void; textColor?: string; containerStyle?: ViewStyle; } const Button: React.FC = ({ name, handlePressButton, textColor, containerStyle, }) => { const {colors} = useTheme(); const styles = themedStyle(colors); return ( {name} ); }; export default Button; const themedStyle = (colors: ColorsScheme) => StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: colors.fill_tertiary, borderRadius: 12, paddingVertical: 14, paddingHorizontal: 16, }, });