Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

ERROR Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider

Boa tarde, nesta aula estou com o seguinte erro log:

ERROR Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider ERROR Invariant Violation: "main" has not been registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called.

Alguém consegue me ajudar?

1 resposta
solução!

Resolvi fazendo o seguinte, seguindo os passos desse link do próprio reactnative navigation: https://reactnavigation.org/docs/troubleshooting/

If you're using Expo managed workflow, it's likely that you have installed an incompatible version. To install the correct version, run:

expo install react-native-safe-area-context If it didn't fix the error or you're not using Expo managed workflow, you'll need to check which package depends on a different version of react-native-safe-area-context.

If you use yarn, run:

yarn why react-native-safe-area-context If you use npm, run:

npm ls react-native-safe-area-context