I am using this hook from react-navigation and instead of calling the hook again in different components, I want to pass navigation as a prop.
const navigation = useNavigation();...<MyButton resetLocation={resetLocation} navigation={navigation} /> But I am unable to figure out the "type" for this navigation prop that I should pass into my MyButton component.
type MyButtonProps = { resetLocation: (locationToReset: string) => void; navigation: any;};export const MyButton: React.FunctionComponent<MyButtonProps> = ({ resetLocation, navigation,What should I replace navigation: any; with?