From 65080e68f2197f31b8a4ed4bf94ad325aa77e923 Mon Sep 17 00:00:00 2001 From: harukin-OneMix4 Date: Tue, 9 Jan 2024 18:31:24 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=BE=E3=81=9F=E6=9C=80=E9=81=A9=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ActionSheetComponents/EachTrainInfo.js | 12 ++++++++---- components/ActionSheetComponents/JRSTraInfo.js | 10 ++++++++++ .../ActionSheetComponents/StationDeteilView.js | 16 +++++++++++++++- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/components/ActionSheetComponents/EachTrainInfo.js b/components/ActionSheetComponents/EachTrainInfo.js index 9b448ac..67dd480 100644 --- a/components/ActionSheetComponents/EachTrainInfo.js +++ b/components/ActionSheetComponents/EachTrainInfo.js @@ -266,10 +266,14 @@ export const EachTrainInfo = (props) => { ref={actionSheetRef} drawUnderStatusBar={false} isModal={Platform.OS == "ios"} - containerStyle={{ - paddingBottom: insets.bottom, - }} - useBottomSafeAreaPadding={true} + containerStyle={ + Platform.OS == "android" + ? { + paddingBottom: insets.bottom, + } + : {} + } + useBottomSafeAreaPadding={Platform.OS == "android"} > { const { getTime, delayData, loadingDelayData, setLoadingDelayData } = useTrainDelayData(); const actionSheetRef = useRef(null); const scrollHandlers = useScrollHandlers("scrollview-1", actionSheetRef); + const insets = useSafeAreaInsets(); return ( } ref={actionSheetRef} isModal={Platform.OS == "ios"} + containerStyle={ + Platform.OS == "android" + ? { + paddingBottom: insets.bottom, + } + : {} + } + useBottomSafeAreaPadding={Platform.OS == "android"} > { (currentStation[0].StationTimeTable.match(".pdf") ? getPDFViewURL(currentStation[0].StationTimeTable) : currentStation[0].StationTimeTable); + const insets = useSafeAreaInsets(); return ( - } isModal={false}> + } + isModal={Platform.OS == "ios"} + containerStyle={ + Platform.OS == "android" + ? { + paddingBottom: insets.bottom, + } + : {} + } + useBottomSafeAreaPadding={Platform.OS == "android"} + >