diff --git a/App.js b/App.js index 278424a..affef7c 100644 --- a/App.js +++ b/App.js @@ -6,8 +6,7 @@ * @flow strict-local */ -import React from 'react'; -import type {Node} from 'react'; +import React from "react"; import { SafeAreaView, ScrollView, @@ -16,7 +15,7 @@ import { Text, useColorScheme, View, -} from 'react-native'; +} from "react-native"; import { Colors, @@ -24,22 +23,20 @@ import { Header, LearnMoreLinks, ReloadInstructions, -} from 'react-native/Libraries/NewAppScreen'; +} from "react-native/Libraries/NewAppScreen"; -const Section = ({children, title}): Node => { - const isDarkMode = useColorScheme() === 'dark'; +const Section = ({children, title}) => { + const isDarkMode = useColorScheme() === "dark"; return ( + ]} + > {title} { { color: isDarkMode ? Colors.light : Colors.dark, }, - ]}> + ]} + > + {children} + + + {children} + + {children} ); }; -const App: () => Node = () => { - const isDarkMode = useColorScheme() === 'dark'; +const App = () => { + const isDarkMode = useColorScheme() === "dark"; const backgroundStyle = { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, @@ -64,26 +82,28 @@ const App: () => Node = () => { return ( - + + contentInsetAdjustmentBehavior='automatic' + style={backgroundStyle} + >
-
+ }} + > +
Edit App.js to change this screen and then come back to see your edits.
-
+
-
+
-
+
Read the docs to discover what to do next:
@@ -100,15 +120,15 @@ const styles = StyleSheet.create({ }, sectionTitle: { fontSize: 24, - fontWeight: '600', + fontWeight: "600", }, sectionDescription: { marginTop: 8, fontSize: 18, - fontWeight: '400', + fontWeight: "400", }, highlight: { - fontWeight: '700', + fontWeight: "700", }, });