始终违规:requireNativeComponent:在UIManager中找不到“ RCTView”

时间:2019-04-05 09:17:48

标签: react-native react-native-android

当我从开发菜单开始远程js调试并在android模拟器中重新加载我的react-native应用程序时,出现此错误:

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

This error is located at:
    in RCTView
    in Root
    in Styled(Root)
    in _default
    in Provider
    in StyleProvider
    in App
    in RCTView
    in RCTView
    in AppContainer
getNativeComponentAttributes
    43f126e6-e124-4b3e-b0e6-b141bfd6e007:28263:5
<unknown>
    43f126e6-e124-4b3e-b0e6-b141bfd6e007:13523:14
Object.exports.get
    43f126e6-e124-4b3e-b0e6-b141bfd6e007:21438:20
completeUnitOfWork
    43f126e6-e124-4b3e-b0e6-b141bfd6e007:20492:64
performUnitOfWork
    43f126e6-e124-4b3e-b0e6-b141bfd6e007:20598:30
renderRoot
    43f126e6-e124-4b3e-b0e6-b141bfd6e007:20618:28
performWorkOnRoot
    43f126e6-e124-4b3e-b0e6-b141bfd6e007:21020:268
performWork
    43f126e6-e124-4b3e-b0e6-b141bfd6e007:20995:7
requestWork
    43f126e6-e124-4b3e-b0e6-b141bfd6e007:20940:95

1 个答案:

答案 0 :(得分:0)

当我在JS开发模式关闭时尝试启动远程JS调试时,在Android上遇到了这种情况。我通过进入“开发设置”菜单并重新启用开发模式来修复它。