native-navigation icon indicating copy to clipboard operation
native-navigation copied to clipboard

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

Open dlindahl opened this issue 8 years ago • 1 comments

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?

dlindahl avatar Aug 24 '17 22:08 dlindahl

I have tried to fix it, check this out #143

hitbear518 avatar Aug 25 '17 08:08 hitbear518