From 2bef810e0da4b8ea5f73c2b8127718952b3fd5cf Mon Sep 17 00:00:00 2001 From: YutaSugimura Date: Thu, 30 Jun 2022 10:32:59 +0900 Subject: [PATCH 1/2] feat: update types to 0.69.1 --- template/App.tsx | 12 +++++++----- template/package.json | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/template/App.tsx b/template/App.tsx index 8cb81c65..22f6a75d 100644 --- a/template/App.tsx +++ b/template/App.tsx @@ -1,3 +1,4 @@ + /** * Sample React Native App * https://github.com/facebook/react-native @@ -8,7 +9,7 @@ * @format */ -import React from 'react'; +import React, {type PropsWithChildren} from 'react'; import { SafeAreaView, ScrollView, @@ -27,10 +28,11 @@ import { ReloadInstructions, } from 'react-native/Libraries/NewAppScreen'; -const Section: React.FC<{ - children: React.ReactNode; - title: string; -}> = ({children, title}) => { +const Section: React.FC< + PropsWithChildren<{ + title: string; + }> +> = ({children, title}) => { const isDarkMode = useColorScheme() === 'dark'; return ( diff --git a/template/package.json b/template/package.json index 028daabc..f0dc7da0 100644 --- a/template/package.json +++ b/template/package.json @@ -11,14 +11,14 @@ }, "dependencies": { "react": "18.0.0", - "react-native": "0.69.0" + "react-native": "0.69.1" }, "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", "@react-native-community/eslint-config": "^2.0.0", "@types/jest": "^26.0.23", - "@types/react-native": "^0.69.0", + "@types/react-native": "^0.69.1", "@types/react-test-renderer": "^18.0.0", "@typescript-eslint/eslint-plugin": "^5.29.0", "@typescript-eslint/parser": "^5.29.0", From 8c57126f0956e09fa4142352c3b893535f80adef Mon Sep 17 00:00:00 2001 From: YutaSugimura Date: Thu, 30 Jun 2022 19:19:29 +0900 Subject: [PATCH 2/2] fix: delete a blank line --- template/App.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/template/App.tsx b/template/App.tsx index 22f6a75d..e21ce8db 100644 --- a/template/App.tsx +++ b/template/App.tsx @@ -1,4 +1,3 @@ - /** * Sample React Native App * https://github.com/facebook/react-native