Skip to content

Document params passing behavior in navigators #374

Open
@brentvatne

Description

@brentvatne

react-navigation/react-navigation#5646

answer i give is:

the route that you navigate to receives the params, not any of its children.

this rfc could help: react-navigation/rfcs#68
more discussion on this here: react-navigation/rfcs#43

we should document this.props.navigation.dangerouslyGetParent().getParam(...) as a way to get the params from the parent, or provide a method that gets params from the parent without the word dangerously maybe...

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