react-navigation.github.io icon indicating copy to clipboard operation
react-navigation.github.io copied to clipboard

Mistake in the linking docs

Open michaelpomogajko opened this issue 5 years ago • 0 comments

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.

michaelpomogajko avatar Nov 08 '20 19:11 michaelpomogajko