クラッシュしたバグを修正
This commit is contained in:
parent
736f9a65e9
commit
7e59b8c7bd
@ -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" }}>
|
||||
|
Loading…
Reference in New Issue
Block a user