Compare commits

..
1 Commits
Author SHA1 Message Date
Radek Czemerys 41a4289f43 fix: App.tsx types and indentation (#196)
* fix: App.tsx

closes #195

* fix: use React.FC
2021-03-17 18:04:59 +00:00
+4 -3
View File
@@ -9,7 +9,6 @@
*/
import React from 'react';
import type {Node} from 'react';
import {
SafeAreaView,
ScrollView,
@@ -28,7 +27,9 @@
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';
const Section = ({children, title}): Node => {
const Section: React.FC<{
title: string;
}> = ({children, title}) => {
const isDarkMode = useColorScheme() === 'dark';
return (
<View style={styles.sectionContainer}>
@@ -54,7 +55,7 @@
);
};
const App: () => Node = () => {
const App = () => {
const isDarkMode = useColorScheme() === 'dark';
const backgroundStyle = {