From 46ca4dd2213988c826ffb61e609f33f5a8fcbbfe Mon Sep 17 00:00:00 2001 From: G Date: Wed, 11 Sep 2024 11:24:05 +0000 Subject: [PATCH] create a wrapper that will provide the default brackground and a safeareaview from top left and right corner --- src/components/wrappers/WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/components/wrappers/WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight.tsx diff --git a/src/components/wrappers/WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight.tsx b/src/components/wrappers/WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight.tsx new file mode 100644 index 0000000..33a0103 --- /dev/null +++ b/src/components/wrappers/WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight.tsx @@ -0,0 +1,15 @@ +import BeasyDefaultBackground from "@components/backgrounds/BeasyDefaultBackground"; +import type React from "react"; +import { SafeAreaView } from "react-native-safe-area-context"; + +type Props = { children: React.ReactNode }; + +const WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight = ({ children }: Props) => { + return ( + + {children} + + ); +}; + +export default WrapperWithDefaultBeasyBackgroundAndSafeAreaTopLeftRight; -- libgit2 0.27.1