Must use destructuring props assignment
You should do it like this: Or if you want to go one lever deeper: But in that case the navigation object should be defined. Although it is possible to give a default value for destructuring objects. E.g. Now navigation will be an empty object if it’s undefined.