Skip to content

Commit

Permalink
added android ios and macos too
Browse files Browse the repository at this point in the history
  • Loading branch information
DevAtomIos committed Apr 3, 2023
1 parent 86a96dd commit 3f737f4
Show file tree
Hide file tree
Showing 30 changed files with 3,512 additions and 49 deletions.
60 changes: 32 additions & 28 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,37 +29,37 @@ type SectionProps = PropsWithChildren<{
title: string;
}>;

function Section({children, title}: SectionProps): JSX.Element {
const isDarkMode = useColorScheme() === 'dark';
return (
<View style={styles.sectionContainer}>
<Text
style={[
styles.sectionTitle,
{
color: isDarkMode ? Colors.white : Colors.black,
},
]}>
{title}
</Text>
<Text
style={[
styles.sectionDescription,
{
color: isDarkMode ? Colors.light : Colors.dark,
},
]}>
{children}
</Text>
</View>
);
}
// function Section({children, title}: SectionProps): JSX.Element {
// const isDarkMode = useColorScheme() === 'dark';
// return (
// <View style={styles.sectionContainer}>
// <Text
// style={[
// styles.sectionTitle,
// {
// color: isDarkMode ? Colors.white : Colors.black,
// },
// ]}>
// {title}
// </Text>
// <Text
// style={[
// styles.sectionDescription,
// {
// color: isDarkMode ? Colors.light : Colors.dark,
// },
// ]}>
// {children}
// </Text>
// </View>
// );
// }

function App(): JSX.Element {
const isDarkMode = useColorScheme() === 'dark';

const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
backgroundColor: isDarkMode ? "grey" : "white",
};

return (
Expand All @@ -71,7 +71,11 @@ function App(): JSX.Element {
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={backgroundStyle}>
<Header />

<Text>
HELLO THIS IS CROSS PLATFORM
</Text>
{/* <Header />
<View
style={{
backgroundColor: isDarkMode ? Colors.black : Colors.white,
Expand All @@ -90,7 +94,7 @@ function App(): JSX.Element {
Read the docs to discover what to do next:
</Section>
<LearnMoreLinks />
</View>
</View> */}
</ScrollView>
</SafeAreaView>
);
Expand Down
Loading

0 comments on commit 3f737f4

Please sign in to comment.