import React from 'react'; import { StyleSheet, Pressable, Text, View } from 'react-native'; const StyledButton = (props) => { return ( [ { backgroundColor: pressed ? '#437dd9' : '#4e8ff5', }, style.pressableStyle, props.style ]} onPress={props.onPress}> {props.name} ); }; const style = StyleSheet.create({ pressableStyle: { alignItems: "center", justifyContent: "center", marginRight: 3, borderRadius: 2, }, buttonText: { fontFamily: 'GowunDodum-Regular', fontSize: 20, }, }) export default StyledButton