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