From 64cef618cd654486174cc6a8179a76c80ef5d497 Mon Sep 17 00:00:00 2001 From: Mo Gorhom Date: Fri, 31 Jul 2020 15:26:58 +0200 Subject: [PATCH] fix: fixed extracting paddingBottom in scrollable components --- src/components/flatList/FlatList.tsx | 2 +- src/components/scrollView/ScrollView.tsx | 2 +- src/components/sectionList/SectionList.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/flatList/FlatList.tsx b/src/components/flatList/FlatList.tsx index 41b7b606d..9b7b35e3e 100644 --- a/src/components/flatList/FlatList.tsx +++ b/src/components/flatList/FlatList.tsx @@ -55,7 +55,7 @@ const FlatList = forwardRef( const contentContainerStyle = useMemo(() => { const { //@ts-ignore - paddingBottom, + paddingBottom = 0, // @ts-ignore ...restContentContainerStyle } = _contentContainerStyle; diff --git a/src/components/scrollView/ScrollView.tsx b/src/components/scrollView/ScrollView.tsx index 3443372f7..0e91b0a6c 100644 --- a/src/components/scrollView/ScrollView.tsx +++ b/src/components/scrollView/ScrollView.tsx @@ -57,7 +57,7 @@ const ScrollView = forwardRef( const contentContainerStyle = useMemo(() => { const { //@ts-ignore - paddingBottom, + paddingBottom = 0, // @ts-ignore ...restContentContainerStyle } = _contentContainerStyle; diff --git a/src/components/sectionList/SectionList.tsx b/src/components/sectionList/SectionList.tsx index cc8e8604d..71b7ac35f 100644 --- a/src/components/sectionList/SectionList.tsx +++ b/src/components/sectionList/SectionList.tsx @@ -55,7 +55,7 @@ const SectionList = forwardRef( const contentContainerStyle = useMemo(() => { const { //@ts-ignore - paddingBottom, + paddingBottom = 0, // @ts-ignore ...restContentContainerStyle } = _contentContainerStyle;