From 042207184447bb2b92729e13320224747995dc44 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Sun, 8 Dec 2024 14:48:50 -0600 Subject: [PATCH] Add no padding Screen option --- src/components/Layout/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index d08505fbfd..27456bb8bf 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -21,6 +21,7 @@ export * as Header from '#/components/Layout/Header' export type ScreenProps = React.ComponentProps & { style?: StyleProp + noPaddingTop?: boolean } /** @@ -28,6 +29,7 @@ export type ScreenProps = React.ComponentProps & { */ export const Screen = React.memo(function Screen({ style, + noPaddingTop, ...props }: ScreenProps) { const {top} = useSafeAreaInsets() @@ -35,7 +37,11 @@ export const Screen = React.memo(function Screen({ <> {isWeb && }