threwの動作条件をおまけで変更

This commit is contained in:
harukin-expo-dev-env 2025-06-11 12:47:57 +00:00
parent c0f7a9b931
commit a7ccb0b41f

View File

@ -170,12 +170,12 @@ export const EachTrainInfoCore = ({
const position = points.findIndex((d) => d == true); const position = points.findIndex((d) => d == true);
let isThrew = false; let isThrew = false;
if (position == -1) return () => {}; if (position == -1) return () => {};
setShowThrew(true);
if (trainDataWidhThrough[position].split(",")[1] == "通過") { if (trainDataWidhThrough[position].split(",")[1] == "通過") {
LayoutAnimation.configureNext({ LayoutAnimation.configureNext({
duration: 400, duration: 400,
update: { type: "easeInEaseOut", springDamping: 0.6 }, update: { type: "easeInEaseOut", springDamping: 0.6 },
}); });
setShowThrew(true);
isThrew = true; isThrew = true;
} }
if (position < 5) { if (position < 5) {