diff --git a/template/App.tsx b/template/App.tsx index 8cb81c65..e21ce8db 100644 --- a/template/App.tsx +++ b/template/App.tsx @@ -8,7 +8,7 @@ * @format */ -import React from 'react'; +import React, {type PropsWithChildren} from 'react'; import { SafeAreaView, ScrollView, @@ -27,10 +27,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 0a853434..2efad4fe 100644 --- a/template/package.json +++ b/template/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "react": "18.0.0", - "react-native": "0.69.0" + "react-native": "0.69.1" }, "devDependencies": { "@babel/core": "^7.12.9", @@ -19,7 +19,7 @@ "@react-native-community/eslint-config": "^2.0.0", "@tsconfig/react-native": "^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",