import React, { useRef } from "react"; import { View, Platform } from "react-native"; import ActionSheet from "react-native-actions-sheet"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import { SpecialTrainInfoBox } from "../Menu/SpecialTrainInfoBox"; export const SpecialTrainInfo = ({ payload }) => { const { navigate } = payload; const actionSheetRef = useRef(null); const insets = useSafeAreaInsets(); return ( } ref={actionSheetRef} isModal={Platform.OS == "ios"} containerStyle={ Platform.OS == "android" ? { paddingBottom: insets.bottom, } : {} } useBottomSafeAreaPadding={Platform.OS == "android"} > ); };