0

我正在尝试使用本机反应构建 android 应用程序。

我不断收到此错误:

ERROR  Invariant Violation: requireNativeComponent: "RCTView" was not found in the UIManager.

This error is located at:
    in RCTView (at View.js:32)
    in View (at AppContainer.js:106)
    in RCTView (at View.js:32)
    in View (at AppContainer.js:133)
    in AppContainer (at renderApplication.js:41)
    in Project(RootComponent) (at renderApplication.js:57), js engine: hermes

但这已通过在应用程序中启用调试模式来解决,正如本文所建议的那样

但是现在,我需要使用react-native-reanimated2,不幸的是该包不支持调试模式(应用程序在调试模式下立即崩溃)。

它写在文档中:

... 由于库使用 JSI 进行同步本地方法访问,因此不再可以进行远程调试。您可以使用 Flipper 来调试 JS 代码,但是目前不支持将调试器连接到运行在 UI 线程上的 JS 上下文。...

那么如何禁用 RCTView 呢?我没有在我自己的应用程序源中使用它。

4

0 回答 0