Compare commits

...
3 Commits
Author SHA1 Message Date
Emin Khateeb 353eb0c27b upgrade to rn 0.64.1 and updated type defs (#206) 2021-05-19 10:47:34 +02:00
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 7 additions and 6 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 = {
+3 -3
View File
@@ -11,14 +11,14 @@
},
"dependencies": {
"react": "17.0.1",
"react-native": "0.64.0"
"react-native": "0.64.1"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@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/jest": "^26.0.23",
"@types/react-native": "^0.64.5",
"@types/react-test-renderer": "^16.9.2",
"babel-jest": "^26.6.3",
"eslint": "^7.14.0",