タブバーのロング押し実装に伴うnavigation手法の変更とふぁぼ画面へのクイックアクセス機能整備

This commit is contained in:
harukin-DeskMini
2023-01-30 01:18:53 +09:00
parent f5e4947c3b
commit 3ff585a577
4 changed files with 43 additions and 35 deletions

View File

@@ -3,10 +3,9 @@ import { View, Text, TouchableOpacity, Linking } from "react-native";
import MapView, { Marker } from "react-native-maps";
import { MaterialCommunityIcons } from "@expo/vector-icons";
export default function TrainMenu({
route: {
params: { webview, stationData },
},
navigation: { navigate },
webview,
stationData,
}) {
const mapRef = useRef();
return (
@@ -67,9 +66,7 @@ export default function TrainMenu({
backgroundColor={"#EA4752"}
icon="star"
flex={1}
onPressButton={() =>
navigate("favoriteList", { webview, stationData })
}
onPressButton={() => navigate("favoriteList")}
>
お気に入り
</UsefulBox>
@@ -96,9 +93,7 @@ export default function TrainMenu({
borderRadius: 5,
alignItems: "center",
}}
onPress={() => {
navigate("Apps");
}}
onPress={() => navigate("Apps")}
>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>