Merge commit '65080e68f2197f31b8a4ed4bf94ad325aa77e923'

This commit is contained in:
harukin-OneMix4
2024-01-09 18:31:30 +09:00
3 changed files with 33 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ import React, { useState, useEffect } from "react";
import { View, Linking, Text, TouchableOpacity, Platform } from "react-native";
import AutoHeightImage from "react-native-auto-height-image";
import { FontAwesome, Foundation, Ionicons } from "@expo/vector-icons";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import ActionSheet from "react-native-actions-sheet";
import Sign from "../../components/駅名表/Sign";
@@ -44,8 +45,21 @@ export const StationDeteilView = (props) => {
(currentStation[0].StationTimeTable.match(".pdf")
? getPDFViewURL(currentStation[0].StationTimeTable)
: currentStation[0].StationTimeTable);
const insets = useSafeAreaInsets();
return (
<ActionSheet gestureEnabled CustomHeaderComponent={<></>} isModal={false}>
<ActionSheet
gestureEnabled
CustomHeaderComponent={<></>}
isModal={Platform.OS == "ios"}
containerStyle={
Platform.OS == "android"
? {
paddingBottom: insets.bottom,
}
: {}
}
useBottomSafeAreaPadding={Platform.OS == "android"}
>
<View
key={currentStation}
style={{