Skip to content

Navigator warns about BackAndroid #804

@ide

Description

@ide

The "else" code path below is running on iOS, triggering a warning:

    if (this.parentNavigator) {
      this.parentNavigator.setHandler(this._handleRequest);
    } else {
      // There is no navigator in our props or context, so this is the
      // top-level navigator. We will handle back button presses here
      BackAndroid.addEventListener('hardwareBackPress', this._handleBackPress);
    }

cc @ericvicenti

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions