クラッシュしたバグを修正

This commit is contained in:
harukin-expo-dev-env 2024-03-26 12:59:13 +00:00
parent 736f9a65e9
commit 7e59b8c7bd

View File

@ -8,7 +8,7 @@ import { useNavigation } from "@react-navigation/native";
export default function FavoriteList({ stationData }) {
const { favoriteStation } = useFavoriteStation();
const { webview } = useCurrentTrain();
const { navigate } = useNavigation();
const { navigate, goBack } = useNavigation();
return (
<View style={{ height: "100%", backgroundColor: "#0099CC" }}>
@ -91,7 +91,7 @@ export default function FavoriteList({ stationData }) {
borderRadius: 5,
alignItems: "center",
}}
onPress={() => navigation.goBack()}
onPress={() => goBack()}
>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>