Add params to navigation.goBack()
Many times we need to be able to retrieve data from a screen we pushed into the stack. To achieve this we need to use navigation.navigate(), wich force as to specify which is the screen we are coming back to. Since we have goBack() method to not worry wich is the previous screen, makes sense to be able to pass in some parameters into it.
marked this post as