trainListをスクロールして閉じようとしたらトップにスクロールを移動させるように変更
This commit is contained in:
@@ -413,6 +413,7 @@ export const EachTrainInfoCore = ({
|
||||
tailStation={tailStation}
|
||||
navigate={navigate}
|
||||
from={from}
|
||||
scrollHandlers={scrollHandlers}
|
||||
/>
|
||||
|
||||
<DynamicHeaderScrollView
|
||||
|
@@ -20,6 +20,7 @@ type Props = {
|
||||
navigate: any;
|
||||
from: string;
|
||||
fontLoaded: boolean;
|
||||
scrollHandlers: any;
|
||||
};
|
||||
|
||||
const textConfig: TextStyle = {
|
||||
@@ -37,6 +38,7 @@ export const HeaderText: FC<Props> = ({
|
||||
tailStation,
|
||||
navigate,
|
||||
from,
|
||||
scrollHandlers
|
||||
}) => {
|
||||
const { limited, trainNum } = data;
|
||||
|
||||
@@ -116,7 +118,7 @@ export const HeaderText: FC<Props> = ({
|
||||
}, [trainData]);
|
||||
|
||||
return (
|
||||
<View style={{ padding: 10, flexDirection: "row", alignItems: "center" }}>
|
||||
<View style={{ padding: 10, flexDirection: "row", alignItems: "center" }} onTouchStart={()=>scrollHandlers.ref.current?.scrollTo({ y: 0, animated: true })}>
|
||||
<TrainIconStatus {...{ data, navigate, from }} />
|
||||
<View
|
||||
style={{ borderRadius: 5, flexDirection: "row", alignItems: "center" }}
|
||||
|
Reference in New Issue
Block a user