How to send data back to previous sceen when using navigation.goBack()?

前端 未结 3 1402
春和景丽
春和景丽 2021-01-04 22:29

I\'ve got screen 1 from which I navigate to screen 2 using:

navigation.navigate(\'Screen2\')

From this screen, I would like to go to the pr

3条回答
  •  既然无缘
    2021-01-04 23:22

    if you're using v2 or newer, another possibility is using the navigate function, providing key / routeName of the route you're going back to and the params. docs: https://reactnavigation.org/docs/en/navigation-actions.html#navigate

提交回复
热议问题