import Styles from "@/constants/Styles" import { MaterialIcons } from "@expo/vector-icons" import { Pressable, Text, View } from "react-native" import Modal from 'react-native-modal'; type Props = { isVisible: boolean setVisible: (value: boolean) => void title?: string children: React.ReactNode animation?: 'slide' | 'none' | 'fade' height?: number } export default function DrawerBottom({ isVisible, setVisible, title, children, animation, height }: Props) { return ( // // // // // {title} // setVisible(false)}> // // // // // {children} // // // // setVisible(false)} swipeDirection="down" hideModalContentWhileAnimating={true} // onBackdropPress={() => { setVisible(true) }} style={[{ justifyContent: 'flex-end', margin: 0 }]} > {title} setVisible(false)}> {children} ) }