From 93c5c006536ca68ebc6ff67c07f9bda386c6357d Mon Sep 17 00:00:00 2001 From: Vincent de Lafontaine Date: Fri, 10 May 2024 11:09:22 -0400 Subject: [PATCH 1/2] Added exposed useSmartScrollView padding to magic.scrollview --- src/Provider.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Provider.tsx b/src/Provider.tsx index 355c4e0..9984947 100644 --- a/src/Provider.tsx +++ b/src/Provider.tsx @@ -57,10 +57,11 @@ export default function SmartScrollView(props: PropsWithChildren<{}>) { export function ScrollView( props: PropsWithChildren<{ scollViewProps?: AnimatedScrollViewProps; + additionalPadding?: number; }> ) { const { scrollHandler, scrollRef, baseScrollViewProps, translateStyle } = - useFormSmartScroll(); + useFormSmartScroll({padding: props?.additionalPadding}); return ( Date: Fri, 10 May 2024 12:19:48 -0400 Subject: [PATCH 2/2] fix(prettier): run prettier --- src/Provider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Provider.tsx b/src/Provider.tsx index 9984947..f2977dc 100644 --- a/src/Provider.tsx +++ b/src/Provider.tsx @@ -61,7 +61,7 @@ export function ScrollView( }> ) { const { scrollHandler, scrollRef, baseScrollViewProps, translateStyle } = - useFormSmartScroll({padding: props?.additionalPadding}); + useFormSmartScroll({ padding: props?.additionalPadding }); return (