不要なnavigateを移動

This commit is contained in:
harukin-expo-dev-env
2024-03-24 17:48:07 +00:00
parent f263dde61c
commit b9a31f413b
5 changed files with 9 additions and 12 deletions

View File

@@ -32,18 +32,18 @@ import { getType } from "../../lib/eachTrainInfoCoreLib/getType";
import { searchSpecialTrain } from "../../lib/eachTrainInfoCoreLib/searchSpecialTrain";
import { openBackTrainInfo } from "../../lib/eachTrainInfoCoreLib/openBackTrainInfo";
import { ShowSpecialTrain } from "./EachTrainInfo/ShowSpecialTrain";
import { useNavigation } from "@react-navigation/native";
export const EachTrainInfoCore = ({
actionSheetRef,
data,
navigate,
originalStationList,
openStationACFromEachTrainInfo,
from,
setTrainInfo,
}) => {
// const [actionSheetHorizonalScroll, setActionSheetHorizonalScroll] = useState(false);
const { navigate } = useNavigation();
const { currentTrain } = useCurrentTrain();
const [currentTrainData, setCurrentTrainData] = useState();
@@ -309,7 +309,6 @@ export const EachTrainInfoCore = ({
currentPosition={currentPosition}
nearTrainIDList={nearTrainIDList}
openTrainInfo={openTrainInfo}
navigate={navigate}
/>
}
longHeader={
@@ -318,7 +317,6 @@ export const EachTrainInfoCore = ({
currentPosition={currentPosition}
nearTrainIDList={nearTrainIDList}
openTrainInfo={openTrainInfo}
navigate={navigate}
/>
}
topStickyContent={