スクロールの挙動修正
This commit is contained in:
parent
f8bd37c452
commit
bf2b4d356c
@ -1,34 +1,6 @@
|
|||||||
import React, { useEffect, useState, useRef } from "react";
|
import React, { useRef } from "react";
|
||||||
import {
|
import { Platform } from "react-native";
|
||||||
View,
|
import ActionSheet from "react-native-actions-sheet";
|
||||||
LayoutAnimation,
|
|
||||||
Text,
|
|
||||||
TouchableOpacity,
|
|
||||||
Platform,
|
|
||||||
StyleSheet,
|
|
||||||
useWindowDimensions,
|
|
||||||
} from "react-native";
|
|
||||||
import { Ionicons } from "@expo/vector-icons";
|
|
||||||
import ActionSheet, {
|
|
||||||
SheetManager,
|
|
||||||
useScrollHandlers,
|
|
||||||
} from "react-native-actions-sheet";
|
|
||||||
import { AS } from "../../storageControl";
|
|
||||||
import trainList from "../../assets/originData/trainList";
|
|
||||||
import { lineList } from "../../lib/getStationList";
|
|
||||||
import { heightPercentageToDP } from "react-native-responsive-screen";
|
|
||||||
import { useCurrentTrain } from "../../stateBox/useCurrentTrain";
|
|
||||||
import { checkDuplicateTrainData } from "../../lib/checkDuplicateTrainData";
|
|
||||||
import { getTrainType } from "../../lib/getTrainType";
|
|
||||||
import { customTrainDataDetector } from "../custom-train-data";
|
|
||||||
import { useBusAndTrainData } from "../../stateBox/useBusAndTrainData";
|
|
||||||
import { EachStopList } from "./EachTrainInfo/EachStopList";
|
|
||||||
import { DataFromButton } from "./EachTrainInfo/DataFromButton";
|
|
||||||
import { DynamicHeaderScrollView } from "../DynamicHeaderScrollView";
|
|
||||||
import { LongHeader } from "./EachTrainInfo/LongHeader";
|
|
||||||
import { ShortHeader } from "./EachTrainInfo/ShortHeader";
|
|
||||||
import { ScrollStickyContent } from "./EachTrainInfo/ScrollStickyContent";
|
|
||||||
import { LandscapeTrainInfo } from "./EachTrainInfo/LandscapeTrainInfo";
|
|
||||||
import { EachTrainInfoCore } from "./EachTrainInfoCore";
|
import { EachTrainInfoCore } from "./EachTrainInfoCore";
|
||||||
export const EachTrainInfo = (props) => {
|
export const EachTrainInfo = (props) => {
|
||||||
if (!props.payload) return <></>;
|
if (!props.payload) return <></>;
|
||||||
|
@ -550,6 +550,7 @@ export const EachTrainInfoCore = ({
|
|||||||
) : (
|
) : (
|
||||||
<DynamicHeaderScrollView
|
<DynamicHeaderScrollView
|
||||||
styles={styles}
|
styles={styles}
|
||||||
|
scrollViewProps={scrollHandlers}
|
||||||
containerProps={{
|
containerProps={{
|
||||||
style: { maxHeight: heightPercentageToDP("70%") },
|
style: { maxHeight: heightPercentageToDP("70%") },
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user