import { MainColor } from "@/constants/color-palet"; import { GStyles } from "@/styles/global-styles"; import { ImageBackground, ScrollView, View } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; interface ViewWrapperProps { children: React.ReactNode; withBackground?: boolean; tabBarComponent?: React.ReactNode; bottomBarComponent?: React.ReactNode; } const ViewWrapper = ({ children, withBackground = false, tabBarComponent, bottomBarComponent, }: ViewWrapperProps) => { const assetBackground = require("../../assets/images/main-background.png"); return ( <> {withBackground ? ( {children} ) : ( {children} )} {tabBarComponent ? tabBarComponent : null} {bottomBarComponent ? ( {bottomBarComponent} ) : null} // // // // {withBackground ? ( // // {children} // // ) : ( // {children} // )} // // {tabBarComponent} // // ); }; export default ViewWrapper;