Skip to content
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
@robertherber

Description

@robertherber

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions