import React, { useEffect, useState } from "react"; import { View, Text, TouchableOpacity, ScrollView } from "react-native"; import { SwitchArea } from "../atom/SwitchArea"; import { useFavoriteStation } from "../../stateBox/useFavoriteStation"; import { CheckBox } from "react-native-elements"; import { ListItem } from "native-base"; import Icon from "react-native-vector-icons/Entypo"; export const FavoriteSettings = ({ navigate }) => { const { favoriteStation } = useFavoriteStation(); return ( navigate("settingTopPage")} style={{ flexDirection: "column", flex: 1, }} > < 設定 お気に入り設定 作成中 {favoriteStation.map((currentStation) => { return ( {currentStation .map((d) => d.StationNumber) .filter((d) => d !== null) .join("/")} {currentStation[0].Station_JP} 移動する ); })} ); }; const SimpleSwitch = ({ bool, setBool, str }) => ( setBool(bool == "true" ? "false" : "true")} containerStyle={{ flex: 1, backgroundColor: "#00000000", borderColor: "white", alignContent: "center", }} textStyle={{ fontSize: 20, fontWeight: "normal" }} title={str} /> );