Skip to content

Commit 07ee46c

Browse files
authored
Add Section Component prop type (#277)
The React 18 update eliminates children from the React.FC default type. Apply the resulting changes
1 parent 2c68dc2 commit 07ee46c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: template/App.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
} from 'react-native/Libraries/NewAppScreen';
2929

3030
const Section: React.FC<{
31+
children: React.ReactNode;
3132
title: string;
3233
}> = ({children, title}) => {
3334
const isDarkMode = useColorScheme() === 'dark';

0 commit comments

Comments
 (0)