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