Navigate back with result
darkmat13r opened this issue · comments
How to get the result passed in
navigator.goBackWith(result)
?
You can use navigator.navigateForResult
In that case I have to know what route I want to go. Is there any other options to pass the result on back screen?
No, navigator.goBackWith
just navigate up and pass the result to the previous screen, this should fit the use case like a picker, for example: in screen A, you want to select something in screen B, you can use navigator.navigateForResult
in screen A, and when user select something in screen B, you can use navigator.goBackWith
in screen B, it will pass the result to screen A and close the screen B.
Thanks :)