react native passing params to nested navigators code example
Example: react native passing params to nested navigators
navigation.navigate('Account', {
screen: 'Settings',
params: { user: 'jane' },
});
navigation.navigate('Account', {
screen: 'Settings',
params: { user: 'jane' },
});