不要っぽいので削除
This commit is contained in:
parent
c45c58cc64
commit
f13e2e8b78
@ -454,47 +454,63 @@ export const EachTrainInfoCore = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
{/* {isLandscape */}
|
<DynamicHeaderScrollView
|
||||||
{false ? (
|
styles={styles}
|
||||||
<LandscapeTrainInfo
|
scrollViewProps={scrollHandlers}
|
||||||
scrollHandlers={scrollHandlers}
|
containerProps={{
|
||||||
leftContent={
|
style: {
|
||||||
from == "AllTrainDiagramView" ? (
|
maxHeight: isLandscape ? height - 94 : heightPercentageToDP("70%"),
|
||||||
<></>
|
},
|
||||||
) : (
|
}}
|
||||||
<LongHeader
|
Max_Header_Height={from == "AllTrainDiagramView" ? 0 : 200}
|
||||||
currentTrainData={currentTrainData}
|
Min_Header_Height={from == "AllTrainDiagramView" ? 0 : 80}
|
||||||
currentPosition={currentPosition}
|
shortHeader={
|
||||||
nearTrainIDList={nearTrainIDList}
|
from == "AllTrainDiagramView" ? (
|
||||||
openTrainInfo={openTrainInfo}
|
<></>
|
||||||
/>
|
) : (
|
||||||
)
|
<ShortHeader
|
||||||
}
|
currentTrainData={currentTrainData}
|
||||||
topStickyContent={
|
currentPosition={currentPosition}
|
||||||
<ScrollStickyContent currentTrainData={currentTrainData} />
|
nearTrainIDList={nearTrainIDList}
|
||||||
}
|
openTrainInfo={openTrainInfo}
|
||||||
>
|
/>
|
||||||
{headStation && !isConcatNear && (
|
)
|
||||||
<TouchableOpacity
|
}
|
||||||
onPress={() => openBackTrainInfo(headStation)}
|
longHeader={
|
||||||
style={{
|
from == "AllTrainDiagramView" ? (
|
||||||
padding: 10,
|
<></>
|
||||||
flexDirection: "row",
|
) : (
|
||||||
borderColor: "blue",
|
<LongHeader
|
||||||
borderWidth: 1,
|
currentTrainData={currentTrainData}
|
||||||
margin: 10,
|
currentPosition={currentPosition}
|
||||||
borderRadius: 5,
|
nearTrainIDList={nearTrainIDList}
|
||||||
alignItems: "center",
|
openTrainInfo={openTrainInfo}
|
||||||
}}
|
/>
|
||||||
>
|
)
|
||||||
<Text
|
}
|
||||||
style={{ fontSize: 18, fontWeight: "bold", color: "black" }}
|
topStickyContent={
|
||||||
>
|
<ScrollStickyContent currentTrainData={currentTrainData} />
|
||||||
「本当の始発駅」を表示
|
}
|
||||||
</Text>
|
>
|
||||||
</TouchableOpacity>
|
{headStation && !isConcatNear && (
|
||||||
)}
|
<TouchableOpacity
|
||||||
{/* <LottieView
|
onPress={() => openBackTrainInfo(headStation)}
|
||||||
|
style={{
|
||||||
|
padding: 10,
|
||||||
|
flexDirection: "row",
|
||||||
|
borderColor: "blue",
|
||||||
|
borderWidth: 1,
|
||||||
|
margin: 10,
|
||||||
|
borderRadius: 5,
|
||||||
|
alignItems: "center",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Text style={{ fontSize: 18, fontWeight: "bold", color: "black" }}>
|
||||||
|
「本当の始発駅」を表示
|
||||||
|
</Text>
|
||||||
|
</TouchableOpacity>
|
||||||
|
)}
|
||||||
|
{/* <LottieView
|
||||||
autoPlay
|
autoPlay
|
||||||
loop
|
loop
|
||||||
style={{ width: 150, height: 150, backgroundColor: "#fff" }}
|
style={{ width: 150, height: 150, backgroundColor: "#fff" }}
|
||||||
@ -502,176 +518,54 @@ export const EachTrainInfoCore = ({
|
|||||||
/>
|
/>
|
||||||
<Text>ほげほげふがふが</Text> */}
|
<Text>ほげほげふがふが</Text> */}
|
||||||
|
|
||||||
{trainData.map((i, index) =>
|
{trainData.map((i, index) =>
|
||||||
i.split(",")[1] == "提" ? (
|
i.split(",")[1] == "提" ? (
|
||||||
<DataFromButton i={i} />
|
<DataFromButton i={i} />
|
||||||
) : (
|
) : (
|
||||||
<EachStopList
|
<EachStopList
|
||||||
i={i}
|
i={i}
|
||||||
index={index}
|
index={index}
|
||||||
stationList={stationList}
|
stationList={stationList}
|
||||||
points={points}
|
points={points}
|
||||||
currentTrainData={currentTrainData}
|
currentTrainData={currentTrainData}
|
||||||
openStationACFromEachTrainInfo={openStationACFromEachTrainInfo}
|
openStationACFromEachTrainInfo={openStationACFromEachTrainInfo}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
{tailStation && !isConcatNear && (
|
{tailStation && !isConcatNear && (
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
onPress={() => openBackTrainInfo(tailStation)}
|
onPress={() => openBackTrainInfo(tailStation)}
|
||||||
style={{
|
style={{
|
||||||
padding: 10,
|
padding: 10,
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
borderColor: "blue",
|
borderColor: "blue",
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
margin: 10,
|
margin: 10,
|
||||||
borderRadius: 5,
|
borderRadius: 5,
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text
|
<Text style={{ fontSize: 18, fontWeight: "bold", color: "black" }}>
|
||||||
style={{ fontSize: 18, fontWeight: "bold", color: "black" }}
|
「本当の終着駅」を表示
|
||||||
>
|
</Text>
|
||||||
「本当の終着駅」を表示
|
</TouchableOpacity>
|
||||||
</Text>
|
)}
|
||||||
</TouchableOpacity>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<View style={{ flexDirection: "row" }}>
|
<View style={{ flexDirection: "row" }}>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
padding: 8,
|
padding: 8,
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
borderBottomWidth: 1,
|
borderBottomWidth: 1,
|
||||||
borderBottomColor: "#f0f0f0",
|
borderBottomColor: "#f0f0f0",
|
||||||
flex: 1,
|
flex: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text style={{ fontSize: 20 }}> </Text>
|
<Text style={{ fontSize: 20 }}> </Text>
|
||||||
<View style={{ flex: 1 }} />
|
<View style={{ flex: 1 }} />
|
||||||
</View>
|
|
||||||
</View>
|
</View>
|
||||||
</LandscapeTrainInfo>
|
</View>
|
||||||
) : (
|
</DynamicHeaderScrollView>
|
||||||
<DynamicHeaderScrollView
|
|
||||||
styles={styles}
|
|
||||||
scrollViewProps={scrollHandlers}
|
|
||||||
containerProps={{
|
|
||||||
style: {
|
|
||||||
maxHeight: isLandscape
|
|
||||||
? height - 94
|
|
||||||
: heightPercentageToDP("70%"),
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
Max_Header_Height={from == "AllTrainDiagramView" ? 0 : 200}
|
|
||||||
Min_Header_Height={from == "AllTrainDiagramView" ? 0 : 80}
|
|
||||||
shortHeader={
|
|
||||||
from == "AllTrainDiagramView" ? (
|
|
||||||
<></>
|
|
||||||
) : (
|
|
||||||
<ShortHeader
|
|
||||||
currentTrainData={currentTrainData}
|
|
||||||
currentPosition={currentPosition}
|
|
||||||
nearTrainIDList={nearTrainIDList}
|
|
||||||
openTrainInfo={openTrainInfo}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
longHeader={
|
|
||||||
from == "AllTrainDiagramView" ? (
|
|
||||||
<></>
|
|
||||||
) : (
|
|
||||||
<LongHeader
|
|
||||||
currentTrainData={currentTrainData}
|
|
||||||
currentPosition={currentPosition}
|
|
||||||
nearTrainIDList={nearTrainIDList}
|
|
||||||
openTrainInfo={openTrainInfo}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
topStickyContent={
|
|
||||||
<ScrollStickyContent currentTrainData={currentTrainData} />
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{headStation && !isConcatNear && (
|
|
||||||
<TouchableOpacity
|
|
||||||
onPress={() => openBackTrainInfo(headStation)}
|
|
||||||
style={{
|
|
||||||
padding: 10,
|
|
||||||
flexDirection: "row",
|
|
||||||
borderColor: "blue",
|
|
||||||
borderWidth: 1,
|
|
||||||
margin: 10,
|
|
||||||
borderRadius: 5,
|
|
||||||
alignItems: "center",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Text
|
|
||||||
style={{ fontSize: 18, fontWeight: "bold", color: "black" }}
|
|
||||||
>
|
|
||||||
「本当の始発駅」を表示
|
|
||||||
</Text>
|
|
||||||
</TouchableOpacity>
|
|
||||||
)}
|
|
||||||
{/* <LottieView
|
|
||||||
autoPlay
|
|
||||||
loop
|
|
||||||
style={{ width: 150, height: 150, backgroundColor: "#fff" }}
|
|
||||||
source={require("../../assets/51690-loading-diamonds.json")}
|
|
||||||
/>
|
|
||||||
<Text>ほげほげふがふが</Text> */}
|
|
||||||
|
|
||||||
{trainData.map((i, index) =>
|
|
||||||
i.split(",")[1] == "提" ? (
|
|
||||||
<DataFromButton i={i} />
|
|
||||||
) : (
|
|
||||||
<EachStopList
|
|
||||||
i={i}
|
|
||||||
index={index}
|
|
||||||
stationList={stationList}
|
|
||||||
points={points}
|
|
||||||
currentTrainData={currentTrainData}
|
|
||||||
openStationACFromEachTrainInfo={openStationACFromEachTrainInfo}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
)}
|
|
||||||
{tailStation && !isConcatNear && (
|
|
||||||
<TouchableOpacity
|
|
||||||
onPress={() => openBackTrainInfo(tailStation)}
|
|
||||||
style={{
|
|
||||||
padding: 10,
|
|
||||||
flexDirection: "row",
|
|
||||||
borderColor: "blue",
|
|
||||||
borderWidth: 1,
|
|
||||||
margin: 10,
|
|
||||||
borderRadius: 5,
|
|
||||||
alignItems: "center",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Text
|
|
||||||
style={{ fontSize: 18, fontWeight: "bold", color: "black" }}
|
|
||||||
>
|
|
||||||
「本当の終着駅」を表示
|
|
||||||
</Text>
|
|
||||||
</TouchableOpacity>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<View style={{ flexDirection: "row" }}>
|
|
||||||
<View
|
|
||||||
style={{
|
|
||||||
padding: 8,
|
|
||||||
flexDirection: "row",
|
|
||||||
borderBottomWidth: 1,
|
|
||||||
borderBottomColor: "#f0f0f0",
|
|
||||||
flex: 1,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Text style={{ fontSize: 20 }}> </Text>
|
|
||||||
<View style={{ flex: 1 }} />
|
|
||||||
</View>
|
|
||||||
</View>
|
|
||||||
</DynamicHeaderScrollView>
|
|
||||||
)}
|
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user