diff --git a/template/App.tsx b/template/App.tsx index 91251e24..5b9974c9 100644 --- a/template/App.tsx +++ b/template/App.tsx @@ -9,7 +9,6 @@ */ import React from 'react'; - import type {Node} from 'react'; import { SafeAreaView, ScrollView, @@ -28,7 +27,9 @@ ReloadInstructions, } from 'react-native/Libraries/NewAppScreen'; - const Section = ({children, title}): Node => { + const Section: React.FC<{ + title: string; + }> = ({children, title}) => { const isDarkMode = useColorScheme() === 'dark'; return ( @@ -54,7 +55,7 @@ ); }; - const App: () => Node = () => { + const App = () => { const isDarkMode = useColorScheme() === 'dark'; const backgroundStyle = {