I added the useIsFocused() to my file to accommodate focus event like
file.js
import { useIsFocused, useNavigation } from "@react-navigation/native"const navigation = useNavigation() const isFocused = useIsFocused()useEffect(() => { getData(somedata) }, [isFocused])
But when i run my test file, the test fails
TypeError: navigation.isFocused is not a function
am I missing something here??