ほぼすべての駅名標機能で内部ブラウザを利用できるように変更

This commit is contained in:
harukin-OneMix4
2023-06-18 03:08:13 +09:00
parent 320a94565d
commit a83bb27f60
3 changed files with 51 additions and 9 deletions

View File

@@ -1,7 +1,14 @@
import { TouchableOpacity, Text } from "react-native";
export const TicketBox = (props) => {
const { icon, backgroundColor, flex, onPressButton, children } = props;
const {
icon,
backgroundColor,
flex,
onPressButton,
children,
onLongPressButton,
} = props;
return (
<TouchableOpacity
style={{
@@ -14,6 +21,7 @@ export const TicketBox = (props) => {
alignItems: "center",
}}
onPress={onPressButton}
onLongPress={onLongPressButton}
>
<Text style={{ color: "white", fontWeight: "bold", fontSize: 18 }}>
{children}