Compare commits

...
2 Commits
Author SHA1 Message Date
Arafat Zahan 14a3f49da3 deps: bump @types/react-native to 0.64.0 (#197) 2021-03-20 17:56:16 +00:00
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
2 changed files with 5 additions and 4 deletions

No files matched your search

+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 = {
+1 -1
View File
@@ -18,7 +18,7 @@
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^2.0.0",
"@types/jest": "^26.0.20",
"@types/react-native": "^0.63.51",
"@types/react-native": "^0.64.0",
"@types/react-test-renderer": "^16.9.2",
"babel-jest": "^26.6.3",
"eslint": "^7.14.0",