import { Ionicons } from "@expo/vector-icons";
import {
Pressable,
StyleSheet,
type StyleProp,
type ViewStyle,
} from "react-native";
import { COLORS } from "../theme";
type BackButtonProps = {
color?: string;
onPress?: () => void;
style?: StyleProp
;
};
export function BackButton({
color = COLORS.white,
onPress,
style,
}: BackButtonProps) {
return (
[
styles.button,
style,
pressed && styles.buttonPressed,
]}
>
);
}
const styles = StyleSheet.create({
button: {
width: 40,
height: 40,
alignItems: "center",
justifyContent: "center",
borderRadius: 999,
},
buttonPressed: {
opacity: 0.72,
},
});