import { type FC } from "react"; import { View } from "react-native"; import type IBottomSheetProps from "./type"; import stylesheet from "./stylesheet"; import { NCoreUIKitTheme } from "../../core/hooks"; import { SafeAreaView } from "react-native-safe-area-context"; import Modal from "../modal"; const BottomSheet: FC = ({ isWrapSafeareaContext = true, safeAreaViewBackgroundColor, backgroundColor = "default", safeAreaViewStyle, children, style, ...props }) => { const { colors, spaces } = NCoreUIKitTheme.useContext(); const renderView = () => { return {children} ; }; const renderWithSafeareaView = () => { return {renderView()} ; }; const renderSafeareaContext = () => { return isWrapSafeareaContext ? renderWithSafeareaView() : renderView(); }; return {renderSafeareaContext()} ; }; export default BottomSheet;