import { MainColor } from "@/constants/color-palet"; import { Styles } 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; } const ViewWrapper = ({ children, withBackground = false, tabBarComponent, }: ViewWrapperProps) => { const assetBackground = require("../../assets/images/main-background.png"); return ( <> {withBackground ? ( {children} ) : ( {children} )} {tabBarComponent} // // // // {withBackground ? ( // // {children} // // ) : ( // {children} // )} // // {tabBarComponent} // // ); }; export default ViewWrapper;