how can i solve this error. I tried everything but it didn’t work
Sounds like something is wrong with a dependency related to React Navigation, likely
react-native-safe-area-context. You could try running the Expo install steps again to ensure you have the corrections.
There’s a few other suggestions when you Google that error, but they all seem to be similar (e.g., check React Navigation deps).
Thanks. Very interestingly, the error is due to this. Once it was fixed the problem went away.