SafeAreaContextを適用

This commit is contained in:
harukin-OneMix4
2024-01-09 17:16:20 +09:00
parent b54f2f6f7e
commit 263cb750ce
2 changed files with 23 additions and 16 deletions

View File

@@ -15,6 +15,7 @@ import ActionSheet, {
SheetManager,
useScrollHandlers,
} from "react-native-actions-sheet";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { AS } from "../../storageControl";
import LottieView from "lottie-react-native";
import trainList from "../../assets/originData/trainList";
@@ -65,7 +66,7 @@ export const EachTrainInfo = (props) => {
})
.catch((d) => AS.setItem("trainPositionSwitch", "false"));
}, []);
const insets = useSafeAreaInsets();
const getStationData = (stationName) => {
const Stations = stationList.map((a) =>
a.filter((d) => d.StationName == stationName)
@@ -264,6 +265,9 @@ export const EachTrainInfo = (props) => {
CustomHeaderComponent={<></>}
ref={actionSheetRef}
drawUnderStatusBar={false}
containerStyle={{
paddingBottom: insets.bottom,
}}
>
<View
style={{