暫定型移行
This commit is contained in:
parent
bc3aca8c41
commit
5d89747c03
@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect } from "react";
|
import React, { FC, useEffect } from "react";
|
||||||
import { View, Text, ScrollView } from "react-native";
|
import { View, Text, ScrollView } from "react-native";
|
||||||
|
|
||||||
import Icon from "react-native-vector-icons/Entypo";
|
import Icon from "react-native-vector-icons/Entypo";
|
||||||
@ -8,7 +8,7 @@ import { useNavigation } from "@react-navigation/native";
|
|||||||
import { useTrainMenu } from "../stateBox/useTrainMenu";
|
import { useTrainMenu } from "../stateBox/useTrainMenu";
|
||||||
import { FavoriteListItem } from "./atom/FavoriteListItem";
|
import { FavoriteListItem } from "./atom/FavoriteListItem";
|
||||||
import { BigButton } from "./atom/BigButton";
|
import { BigButton } from "./atom/BigButton";
|
||||||
export default function FavoriteList() {
|
export const FavoriteList: FC = () => {
|
||||||
const { favoriteStation } = useFavoriteStation();
|
const { favoriteStation } = useFavoriteStation();
|
||||||
const { webview } = useCurrentTrain();
|
const { webview } = useCurrentTrain();
|
||||||
const { navigate, addListener, goBack, canGoBack } = useNavigation();
|
const { navigate, addListener, goBack, canGoBack } = useNavigation();
|
||||||
@ -92,4 +92,4 @@ export default function FavoriteList() {
|
|||||||
<BigButton onPress={() => goBack()} string="閉じる" />
|
<BigButton onPress={() => goBack()} string="閉じる" />
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
};
|
@ -1,8 +1,17 @@
|
|||||||
import React from "react";
|
import React, { FC } from "react";
|
||||||
import { View, Text, TouchableOpacity } from "react-native";
|
import { View, Text, TouchableOpacity } from "react-native";
|
||||||
import lineColorList from "../../assets/originData/lineColorList";
|
import lineColorList from "../../assets/originData/lineColorList";
|
||||||
|
|
||||||
export const FavoriteListItem = ({ currentStation, children, onPress }) => {
|
|
||||||
|
type Props = {
|
||||||
|
currentStation: {
|
||||||
|
Station_JP: string;
|
||||||
|
StationNumber: string;
|
||||||
|
}[];
|
||||||
|
onPress: () => void;
|
||||||
|
children: React.ReactNode;
|
||||||
|
}
|
||||||
|
export const FavoriteListItem:FC<Props> = ({ currentStation, children, onPress }) => {
|
||||||
const lineIDs = [];
|
const lineIDs = [];
|
||||||
const EachIDs = [];
|
const EachIDs = [];
|
||||||
currentStation.forEach((d) => {
|
currentStation.forEach((d) => {
|
Loading…
Reference in New Issue
Block a user