I've tried both approaches and end up with the same result: ```JavaScript // 1. const { isFocused } = useNavigationFocus() // 2. const navigation = useNavigation(); const isFocused = navigation.isFocused(); ``` This is in the context of a Tab Navigator. The first time I switch tab isFocused is updated - but after the initial render it doesn't update. For now I went back to use `withNavigationFocus`- I get a feeling this package needs some more testing before using! :)
I've tried both approaches and end up with the same result:
This is in the context of a Tab Navigator. The first time I switch tab isFocused is updated - but after the initial render it doesn't update.
For now I went back to use
withNavigationFocus- I get a feeling this package needs some more testing before using! :)