This repository was archived by the owner on Dec 3, 2022. It is now read-only.
This repository was archived by the owner on Dec 3, 2022. It is now read-only.
isFocused not updating after first navigation #34
Closed
Description
I've tried both approaches and end up with the same result:
// 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! :)
Metadata
Metadata
Assignees
Labels
No labels