diff --git a/components/Screen.tsx b/components/Screen.tsx index 5a2bc9e..a478d78 100644 --- a/components/Screen.tsx +++ b/components/Screen.tsx @@ -1,10 +1,10 @@ -import { HeaderButtonProps } from "@react-navigation/native-stack/src/types"; +import { NativeStackHeaderRightProps } from "@react-navigation/native-stack/src/types"; import { Stack } from "expo-router"; import { StackAnimationTypes } from "react-native-screens"; type ScreenProps = { title: string; - right?: (props: HeaderButtonProps) => React.ReactNode; + right?: (props: NativeStackHeaderRightProps) => React.ReactNode; animation?: StackAnimationTypes; }; diff --git a/yarn.lock b/yarn.lock index a50a15b..3c89542 100644 --- a/yarn.lock +++ b/yarn.lock @@ -41,7 +41,7 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.2.tgz#278b6b13664557de95b8f35b90d96785850bb56e" integrity sha512-Z0WgzSEa+aUcdiJuCIqgujCshpMWgUpgOxXotrYPSA53hA3qopNaqcJpyr0hVb1FeWdnqFA35/fUtXgBK8srQg== -"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.13.16", "@babel/core@^7.20.0", "@babel/core@^7.23.9", "@babel/core@^7.25.2": +"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.13.16", "@babel/core@^7.20.0", "@babel/core@^7.23.9", "@babel/core@^7.25.2", "@babel/core@^7.26.0": version "7.26.0" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.0.tgz#d78b6023cc8f3114ccf049eb219613f74a747b40" integrity sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==