不要になったLottieRefを削除

This commit is contained in:
harukin-OneMix4
2022-11-18 19:28:40 +09:00
parent 343a0ad06e
commit 75b5f9b326
2 changed files with 63 additions and 75 deletions

View File

@@ -40,13 +40,12 @@ export const JRSTraInfo = (props) => {
loadingDelayData,
setLoadingDelayData,
delayData,
LottieRef2,
} = props;
return (
<ActionSheet
ref={JRSTraInfoEXAcSR}
gestureEnabled
CustomHeaderComponent={() => {}}
CustomHeaderComponent={() => { }}
>
<View
style={{
@@ -81,8 +80,8 @@ export const JRSTraInfo = (props) => {
<Text style={{ fontSize: 30, fontWeight: "bold", color: "white" }}>
{getTime
? getTime.toLocaleTimeString("ja-JP").split(":")[0] +
":" +
getTime.toLocaleTimeString("ja-JP").split(":")[1]
":" +
getTime.toLocaleTimeString("ja-JP").split(":")[1]
: NaN}{" "}
</Text>
<Ionicons
@@ -107,7 +106,8 @@ export const JRSTraInfo = (props) => {
{loadingDelayData ? (
<View style={{ alignItems: "center" }}>
<LottieView
ref={LottieRef2}
autoPlay
loop
style={{ width: 150, height: 150, backgroundColor: "#fff" }}
source={require("../../assets/51690-loading-diamonds.json")}
/>