import React, { FC } from "react"; import { Linking } from "react-native"; import { FontAwesome } from "@expo/vector-icons"; import { TicketBox } from "@/components/atom/TicketBox"; type Props = { info: string; address: string; usePDFView: string; navigate: (screen: string, params?: object) => void; onExit: () => void; goTo: string; useShow: string; }; export const StationTimeTableButton: FC = (props) => { const { info, address, usePDFView, navigate, onExit, goTo, useShow } = props; return ( } flex={1} onPressButton={() => { usePDFView == "true" ? Linking.openURL(address) : navigate("howto", { info, goTo, useShow }); onExit(); }} onLongPressButton={() => Linking.openURL(address)} > 時刻表 ); };