From 1cefc22d6463eec2b96ceb2c1ffe4d8e74741839 Mon Sep 17 00:00:00 2001 From: youngbin song Date: Thu, 23 Jun 2022 22:00:05 +0900 Subject: [PATCH] Add Section Component prop type The React 18 update eliminates children from the React.FC default type. Apply the resulting changes --- template/App.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/template/App.tsx b/template/App.tsx index e2cc13b3..8cb81c65 100644 --- a/template/App.tsx +++ b/template/App.tsx @@ -28,6 +28,7 @@ import { } from 'react-native/Libraries/NewAppScreen'; const Section: React.FC<{ + children: React.ReactNode; title: string; }> = ({children, title}) => { const isDarkMode = useColorScheme() === 'dark';