Skip to main content

Org Navigation(mobile)

While defining react naigation route config, if any of the route contains route param then all the child routes should pass the param while navigating to the route. Consider the following example

Screenshot 2022-11-28 at 2 25 10 AM

The stack screen will be defined like this

Screenshot 2022-11-28 at 2 25 42 AM

Now whenever you need to navigate to Dashboard, you will have to pass the orgName prop like this navgation.navigate('MainStack.OrgStack.OrgNameStack', {screen: 'Dashboard', params: {orgName: 'asd'}})