react navigation navigate two layers 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' },
});