ファクタリング
This commit is contained in:
parent
e6adf775bb
commit
fbd76a0cf6
@ -1,9 +1,6 @@
|
||||
import { AS } from "@/storageControl";
|
||||
import { useBottomTabBarHeight } from "@react-navigation/bottom-tabs";
|
||||
import React, { useEffect, useRef } from "react";
|
||||
import { useWindowDimensions } from "react-native";
|
||||
import React from "react";
|
||||
import {
|
||||
View,
|
||||
TouchableOpacity,
|
||||
Text,
|
||||
LayoutAnimation,
|
||||
@ -16,8 +13,6 @@ import { SearchUnitBox } from "@/components/Menu/RailScope/SearchUnitBox";
|
||||
export const CarouselTypeChanger = ({
|
||||
locationStatus,
|
||||
position,
|
||||
mapsRef,
|
||||
scrollRef,
|
||||
stationListMode,
|
||||
setStationListMode,
|
||||
setSelectedCurrentStation,
|
||||
@ -25,13 +20,9 @@ export const CarouselTypeChanger = ({
|
||||
setMapMode,
|
||||
isSearchMode,
|
||||
setisSearchMode,
|
||||
listUpStation,
|
||||
setListUpStation,
|
||||
input,
|
||||
setInput
|
||||
input,
|
||||
setInput,
|
||||
}) => {
|
||||
const tabBarHeight = useBottomTabBarHeight();
|
||||
const { height, width } = useWindowDimensions();
|
||||
const returnToDefaultMode = () => {
|
||||
LayoutAnimation.configureNext({
|
||||
duration: 300,
|
||||
|
7
menu.js
7
menu.js
@ -368,8 +368,6 @@ export default function Menu(props) {
|
||||
{...{
|
||||
locationStatus,
|
||||
position,
|
||||
mapsRef,
|
||||
scrollRef,
|
||||
stationListMode,
|
||||
setStationListMode,
|
||||
setSelectedCurrentStation: setListIndex,
|
||||
@ -377,8 +375,6 @@ export default function Menu(props) {
|
||||
setMapMode,
|
||||
isSearchMode,
|
||||
setisSearchMode,
|
||||
listUpStation,
|
||||
setListUpStation,
|
||||
input,
|
||||
setInput,
|
||||
}}
|
||||
@ -418,7 +414,6 @@ export default function Menu(props) {
|
||||
{...{
|
||||
locationStatus,
|
||||
position,
|
||||
mapsRef,
|
||||
stationListMode,
|
||||
setStationListMode,
|
||||
setSelectedCurrentStation: setListIndex,
|
||||
@ -426,8 +421,6 @@ export default function Menu(props) {
|
||||
setMapMode,
|
||||
isSearchMode,
|
||||
setisSearchMode,
|
||||
listUpStation,
|
||||
setListUpStation,
|
||||
input,
|
||||
setInput,
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user