投稿機能へのウィンドウを作成

This commit is contained in:
harukin-expo-dev-env
2025-06-15 05:20:11 +00:00
parent 8e7ccba5cc
commit c92f02fa0e
4 changed files with 44 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import React, { CSSProperties, FC, useEffect, useMemo, useState } from "react";
import { Text, View, LayoutAnimation, TextStyle } from "react-native";
import { Text, View, LayoutAnimation, TextStyle, TouchableOpacity } from "react-native";
import { Ionicons } from "@expo/vector-icons";
import { SheetManager } from "react-native-actions-sheet";
import { getType } from "../../../lib/eachTrainInfoCoreLib/getType";
@@ -120,8 +120,15 @@ export const HeaderText: FC<Props> = ({
return (
<View style={{ padding: 10, flexDirection: "row", alignItems: "center" }} onTouchStart={()=>scrollHandlers.ref.current?.scrollTo({ y: 0, animated: true })}>
<TrainIconStatus {...{ data, navigate, from }} />
<View
<TouchableOpacity
style={{ borderRadius: 5, flexDirection: "row", alignItems: "center" }}
onLongPress={() => {
navigate("generalWebView", {
uri: "https://jr-shikoku-data-post-system.pages.dev?trainNum=" + trainNum,
useExitButton: false
});
SheetManager.hide("EachTrainInfo");
}}
>
<Text
style={{
@@ -137,7 +144,7 @@ export const HeaderText: FC<Props> = ({
{isOneMan && <OneManText />}
<Text style={textConfig}>{trainName}</Text>
<InfogramText infogram={infogram} />
</View>
</TouchableOpacity>
<View style={{ flex: 1 }} />
<Text style={textConfig}>