diff --git a/.github/workflows/formatCodePrettier.yml b/.github/workflows/formatCodePrettier.yml index 39ddbbb..0a84bd8 100644 --- a/.github/workflows/formatCodePrettier.yml +++ b/.github/workflows/formatCodePrettier.yml @@ -22,6 +22,11 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 + with: + # Make sure the actual branch is checked out when running on pull requests + ref: ${{ github.head_ref }} + # This is important to fetch the changes to the previous commit + fetch-depth: 0 # Runs a single command using the runners shell - name: Run a one-line script diff --git a/App.js b/App.js index 278424a..ed103ee 100644 --- a/App.js +++ b/App.js @@ -7,7 +7,6 @@ */ import React from 'react'; -import type {Node} from 'react'; import { SafeAreaView, ScrollView, @@ -26,7 +25,7 @@ import { ReloadInstructions, } from 'react-native/Libraries/NewAppScreen'; -const Section = ({children, title}): Node => { +const Section = ({children, title}) => { const isDarkMode = useColorScheme() === 'dark'; return ( @@ -34,10 +33,7 @@ const Section = ({children, title}): Node => { style={[ styles.sectionTitle, { - color: isDarkMode ? - Colors.white : - - Colors.black, + color: isDarkMode ? Colors.white : Colors.black, }, ]}> {title} @@ -51,12 +47,32 @@ const Section = ({children, title}): Node => { ]}> {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,7 +80,7 @@ const App: () => Node = () => { return ( - + @@ -80,12 +96,16 @@ const App: () => Node = () => {
-
- -
-
- Read the docs to discover what to do next: -
+
+ +
+
+ Read the docs to discover what to do next: +