Skip to content

Commit

Permalink
Add Section Component prop type (#277)
Browse files Browse the repository at this point in the history
The React 18 update eliminates children from the React.FC default type. Apply the resulting changes
  • Loading branch information
seventeeen authored Jun 23, 2022
1 parent 2c68dc2 commit 07ee46c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions template/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 07ee46c

Please sign in to comment.