React Native Android 应用程序构建成功,但我一直在 Metro 终端中看到这 4 个错误:
ERROR Error: [Reanimated] Native part of Reanimated doesn't seem to be initialized.
See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#native-part-of-reanimated-doesnt-seem-to-be-initialized for more details., js engine: hermes
LOG Running "AbleTo" with {"rootTag":11}
ERROR Invariant Violation: "AbleTo" 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., js engine: hermes
ERROR Invariant Violation: requireNativeComponent: "RCTView" was not found in the UIManager.
This error is located at:
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in LogBox(RootComponent), js engine: hermes
ERROR Invariant Violation: requireNativeComponent: "RCTView" was not found in the UIManager.
This error is located at:
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in LogBox(RootComponent), js engine: hermes
我不明白为什么 Reanimated 没有初始化,因为我已经完成了设置并涵盖了所有步骤。升级之前一直运行得很好。我也不太明白其他 3 个错误指的是什么。有人有什么建议吗?
你可以检查一下这个版本 npm i [电子邮件受保护]