import { FC } from "react"; import { TouchableOpacity, View, Text, Linking } from "react-native"; type Props = { navigate: (screen: string, params: { info: string; goTo: string; useShow: boolean }) => void; address: string; goTo: string; useShow: boolean; onExit: () => void; }; export const 駅構内図:FC = (props) => { const { navigate, address, goTo, useShow, onExit } = props; const info = address.replace("/index.html", "/") + "/kounai_map.html"; return ( { navigate("howto", { info, goTo, useShow }); onExit(); }} onLongPress={() => Linking.openURL(info)} > 駅構内図を表示 ); };