react-navigation.github.io
react-navigation.github.io copied to clipboard
Mistake in the linking docs
In the section Serializing and parsing params the example tries to achieve the following state
const state = {
routes: [
{
name: 'Chat',
params: { at: 1589842744264 },
},
];
}
with the param named at.
But the path to it being chat/:date.
Meaning the resulting route param would be
params: {date: 1589842744264}
This needs fixing, and also I'm missing an option in renaming the state params from the path params.
As in this example we want to map chat/:date to at param.