fixed typescript error and properly dealt with new dependency

This commit is contained in:
Dean 2024-02-20 17:24:18 -08:00
parent 0360fb413c
commit 3a621b8323
3 changed files with 16 additions and 1 deletions

View File

@ -30,6 +30,7 @@
"@react-navigation/bottom-tabs": "^6.5.11",
"@react-navigation/native": "^6.1.9",
"@react-navigation/native-stack": "^6.9.17",
"@react-navigation/stack": "^6.3.21",
"@types/react": "~18.2.14",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",

View File

@ -18,7 +18,7 @@ type SessionFeedNavigationProp = StackNavigationProp<
interface SessionFeedProps {
navigation: SessionFeedNavigationProp;
}
const SessionFeed: React.FC = ({ navigation }) => {
const SessionFeed: React.FC<SessionFeedProps> = ({ navigation }) => {
return (
<View style={styles.container}>
<TouchableOpacity onPress={() => navigation.push("Session")}>

View File

@ -3091,6 +3091,11 @@
resolved "https://registry.yarnpkg.com/@react-navigation/elements/-/elements-1.3.21.tgz#debac6becc6b6692da09ec30e705e476a780dfe1"
integrity sha512-eyS2C6McNR8ihUoYfc166O1D8VYVh9KIl0UQPI8/ZJVsStlfSTgeEEh+WXge6+7SFPnZ4ewzEJdSAHH+jzcEfg==
"@react-navigation/elements@^1.3.22":
version "1.3.22"
resolved "https://registry.yarnpkg.com/@react-navigation/elements/-/elements-1.3.22.tgz#37e25e46ca4715049795471056a9e7e58ac4a14e"
integrity sha512-HYKucs0TwQT8zMvgoZbJsY/3sZfzeP8Dk9IDv4agst3zlA7ReTx4+SROCG6VGC7JKqBCyQykHIwkSwxhapoc+Q==
"@react-navigation/native-stack@^6.9.17":
version "6.9.17"
resolved "https://registry.yarnpkg.com/@react-navigation/native-stack/-/native-stack-6.9.17.tgz#4fc370b14be07296423ae8c00940fb002c6001b5"
@ -3116,6 +3121,15 @@
dependencies:
nanoid "^3.1.23"
"@react-navigation/stack@^6.3.21":
version "6.3.21"
resolved "https://registry.yarnpkg.com/@react-navigation/stack/-/stack-6.3.21.tgz#beec1a384969d10c8ddab9978f382fa441182760"
integrity sha512-oh059bD9w6Q7YbcK3POXRHK+bfoafPU9gvunD0MHJGmPVe9bazn5OMNzRYextvB6BfwQy+v3dy76Opf0vIGcNg==
dependencies:
"@react-navigation/elements" "^1.3.22"
color "^4.2.3"
warn-once "^0.1.0"
"@repeaterjs/repeater@^3.0.4":
version "3.0.5"
resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.5.tgz#b77571685410217a548a9c753aa3cdfc215bfc78"