Skip to content

Navigator.dismiss(payload) does not provide payload to Promise<NavigationResult> #142

Description

@dlindahl

When calling dismiss(payload), the payload object is never available as a return value to the Navigator.present Promise.

// screen_a.js
Navigator.present(SCREEN_B).then(result => {
  console.info(result)
  // { code: -1 }
})

// screen_b.js
Navigator.dismiss({ success: true })

No matter what I provide to dismiss, all I ever get is the NavigationResult code and never a payload key.

Is this feature not yet functioning or am I missing something from the docs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions