error in navigation .

Please see this post:

which refers to this note in the documentation:

https://docs.expo.io/versions/latest/bare/using-expo-client/#avoid-importing-the-expo-package-in-bare