From 3ef421291e2fe83bbbd1429793682111ac69c7bd Mon Sep 17 00:00:00 2001 From: G Date: Fri, 26 Apr 2024 15:32:36 +0000 Subject: [PATCH] a pressable custom goBack button --- src/components/GoBackIconButton.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/components/GoBackIconButton.tsx diff --git a/src/components/GoBackIconButton.tsx b/src/components/GoBackIconButton.tsx new file mode 100644 index 0000000..05033b5 --- /dev/null +++ b/src/components/GoBackIconButton.tsx @@ -0,0 +1,18 @@ +import Box from "@components/bases/Box"; +import { Ionicons } from "@expo/vector-icons"; +import { TouchableOpacity } from "react-native"; + +type Props = { + onPress: () => void; +}; +const GoBackIconButton = ({ onPress }: Props) => { + return ( + + + + + + ); +}; + +export default GoBackIconButton; -- libgit2 0.27.1