From 4228d727988bf5348b687409a534334cbb21e7fb Mon Sep 17 00:00:00 2001 From: Ronald Curtis Date: Tue, 25 May 2021 18:43:49 +0900 Subject: [PATCH] fix: use React.PropsWithChildren --- src/ScrollComponents/ScrollView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ScrollComponents/ScrollView.tsx b/src/ScrollComponents/ScrollView.tsx index 985eeab..907fb92 100644 --- a/src/ScrollComponents/ScrollView.tsx +++ b/src/ScrollComponents/ScrollView.tsx @@ -12,7 +12,9 @@ import { useCollapsibleStyle } from '../useCollapsibleStyle' /** * Use like a regular ScrollView. */ -export const ScrollView: React.FC> = ({ +export const ScrollView: React.FC< + React.PropsWithChildren> +> = ({ contentContainerStyle, style, onContentSizeChange,