react-navigation/rfcs

navigation.navigate prop params should match signature of NavigationActions.navigate params

lfkwtz opened this issue · 1 comments

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'},
})

the reason is that the helper is more concise