Skip to content

Commit

Permalink
fix: 클릭할 수 있는 버튼의 범위 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyunbak committed Oct 25, 2023
1 parent 3f054fc commit 51870d7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions components/Button/GoBackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import {
View,
StyleSheet,
TouchableOpacity,
GestureResponderEvent,
Pressable,
} from "react-native";
import { useNavigation } from "@react-navigation/native";

Expand All @@ -25,14 +25,13 @@ export function GoBackButton({ onPress, disable = false }: GoBackButtonProps) {
};

return (
<TouchableOpacity
<Pressable
style={[styles.container, { opacity: disable ? 0 : 1 }]}
onPress={onPress || goBackButtonClickHandler}
disabled={disable}
>
<View style={[styles.container, { opacity: disable ? 0 : 1 }]}>
<CaretLeft />
</View>
</TouchableOpacity>
<CaretLeft />
</Pressable>
);
}

Expand Down

0 comments on commit 51870d7

Please sign in to comment.