From 894829dd9d9650822f2feb91e698aea3c2e09828 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Thu, 15 Feb 2024 10:55:41 +0530 Subject: [PATCH] Create addAccount function --- components/Section.tsx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 components/Section.tsx diff --git a/components/Section.tsx b/components/Section.tsx new file mode 100644 index 0000000..f1ab8fe --- /dev/null +++ b/components/Section.tsx @@ -0,0 +1,29 @@ +import { PropsWithChildren } from 'react'; +import { Text, View, useColorScheme } from 'react-native'; +import { Colors } from 'react-native/Libraries/NewAppScreen'; + +import styles from '../styles/stylesheet'; + +type SectionProps = PropsWithChildren<{ + title: string; +}>; + +const Section = ({ title }: SectionProps): React.JSX.Element => { + const isDarkMode = useColorScheme() === 'dark'; + return ( + + + {title} + + + + ); +}; + +export { Section };