import React from "react"; import { View, Text, LayoutAnimation, TouchableOpacity } from "react-native"; export const ScrollStickyContent = (props) => { const { currentTrainData, showThrew, setShowThrew, haveThrough } = props; return ( 停車駅 {!isNaN(currentTrainData?.delay) && currentTrainData?.delay != 0 && ( (定刻) )} 見込 { if (!haveThrough) return; LayoutAnimation.configureNext({ duration: 200, update: { type: "easeInEaseOut", springDamping: 0.6 }, }); setShowThrew(!showThrew); }} > (通過{showThrew ? "▼" : "▶"}) ); };