We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 739f9e7 commit 41a4289Copy full SHA for 41a4289
template/App.tsx
@@ -9,7 +9,6 @@
9
*/
10
11
import React from 'react';
12
- import type {Node} from 'react';
13
import {
14
SafeAreaView,
15
ScrollView,
@@ -28,7 +27,9 @@
28
27
ReloadInstructions,
29
} from 'react-native/Libraries/NewAppScreen';
30
31
- const Section = ({children, title}): Node => {
+ const Section: React.FC<{
+ title: string;
32
+ }> = ({children, title}) => {
33
const isDarkMode = useColorScheme() === 'dark';
34
return (
35
<View style={styles.sectionContainer}>
@@ -54,7 +55,7 @@
54
55
);
56
};
57
- const App: () => Node = () => {
58
+ const App = () => {
59
60
61
const backgroundStyle = {
0 commit comments