0

this is my screen structure Stack.Navigator Login (Screen) Register (Screen) Todolist-screen (Tab.navigator) todolist (Screen) profile (Screen)

enter image description here as you can see im sending param to the just to do list screen, because of that i can't got the params in the profile screen but if im not doing like that lets say im doing like this

enter image description here i can't get the route.params in both of the screen,So is there any way to sending params tot both of the screen?? enter code here

  • Why do you need to have params in multiple screens at the same time? You can only navigate to a single screen at a time? You either navigate to todo list screen or profile screen, each time you navigate to a screen, send the params you need. Am I understand you correctly? – Bora Sumer Jan 17 '22 at 02:49
  • so how to pass params to profile screen, since im initial route to todo list screen when user click button login, in todo list screen i didnt provide button to profile screen, im using bottom tab – Akhmad Fauzan Jan 17 '22 at 05:53
  • You can use initialParams. Take a look at this https://reactnavigation.org/docs/params/#initial-params – Bora Sumer Jan 17 '22 at 14:01

0 Answers0