navigation.navigate prop params should match signature of NavigationActions.navigate params
lfkwtz opened this issue · 1 comments
lfkwtz commented
Not sure if this has been brought up before, but what's the logic in having different param signatures between the two?
navigation.navigate('sampleRoute', {sampleParam: 'hello'})
vs.
NavigationActions.navigate({
routeName: 'sampleRoute',
params: {sampleParam: 'hello'},
})
brentvatne commented
the reason is that the helper is more concise