TypeError: undefined is not an object (evaluating 'route.key')

Hey Mosh I am following your react native part 2 tutorial and I am at the navigation part but when I try to print out the tweet screen I get this error.

Can you supply more details? What specific lesson are you in, and can you supply a screenshot or something that provides more information?

If you do so, someone on the forum may be able to assist. (I’m just another student – Mosh doesn’t seem to participate in this forum.)

Make sure the following libraries are the same version:

@react-navigation/native
@react-navigation/stack

1 Like