From ec98ab2e1b93ba24ab963b0b9f7afdfa6f078771 Mon Sep 17 00:00:00 2001 From: lpatrun Date: Sun, 15 Dec 2024 08:17:30 +0100 Subject: [PATCH] fix: rest style --- src/components/KeyboardAwareScrollView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/KeyboardAwareScrollView/index.tsx b/src/components/KeyboardAwareScrollView/index.tsx index 991e3ba3f4..166bea858b 100644 --- a/src/components/KeyboardAwareScrollView/index.tsx +++ b/src/components/KeyboardAwareScrollView/index.tsx @@ -113,7 +113,7 @@ const KeyboardAwareScrollView = forwardRef< const { height } = useWindowDimensions(); - const restStyle = (rest?.style?.[0] || {}) + const restStyle = (rest?.style && rest?.style?.[0] || {}) const inverted = "transform" in restStyle ? restStyle.transform[0]?.scale === -1 : false const onRef = useCallback((assignedRef: Reanimated.ScrollView) => {