停車駅情報等をsticky-headerに
This commit is contained in:
parent
80f4913f89
commit
b551c75061
@ -67,9 +67,6 @@ export const EachTrainInfo = (props) => {
|
|||||||
showNearTrain.forEach((d) => {
|
showNearTrain.forEach((d) => {
|
||||||
const [station, se, time] = d.split(",");
|
const [station, se, time] = d.split(",");
|
||||||
|
|
||||||
console.log(trainData); //trainDataは現在の列車の停車駅リスト
|
|
||||||
console.log(station); //showNearTrainは裏列車の停車駅リスト
|
|
||||||
console.log(trainData[0]);
|
|
||||||
if (station == trainData[0].split(",")[0])
|
if (station == trainData[0].split(",")[0])
|
||||||
setHeadStation(trainData[0].split(",")[0]);
|
setHeadStation(trainData[0].split(",")[0]);
|
||||||
if (station == trainData[trainData.length - 1].split(",")[0])
|
if (station == trainData[trainData.length - 1].split(",")[0])
|
||||||
@ -556,12 +553,23 @@ export const EachTrainInfo = (props) => {
|
|||||||
</View> */}
|
</View> */}
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
)}
|
)}
|
||||||
|
<ScrollView
|
||||||
|
{...scrollHandlers}
|
||||||
|
style={{
|
||||||
|
maxHeight: heightPercentageToDP(
|
||||||
|
from == "AllTrainDiagramView" ? "70%" : "50%"
|
||||||
|
),
|
||||||
|
backgroundColor: "white",
|
||||||
|
}}
|
||||||
|
stickyHeaderIndices={[0]}
|
||||||
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
backgroundColor: "white",
|
backgroundColor: "white",
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
}}
|
}}
|
||||||
|
index={0}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@ -607,15 +615,6 @@ export const EachTrainInfo = (props) => {
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<ScrollView
|
|
||||||
{...scrollHandlers}
|
|
||||||
style={{
|
|
||||||
maxHeight: heightPercentageToDP(
|
|
||||||
from == "AllTrainDiagramView" ? "70%" : "50%"
|
|
||||||
),
|
|
||||||
backgroundColor: "white",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{headStation && !isConcatNear && (
|
{headStation && !isConcatNear && (
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
onPress={() => openBackTrainInfo(headStation)}
|
onPress={() => openBackTrainInfo(headStation)}
|
||||||
|
Loading…
Reference in New Issue
Block a user