HarmonyOS ReactNative项目中用到了react-native-modal,但报错没有"ARTShape"?

https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-root-modal.md

在接入上述React Native OpenHarmony的第三方库react-native-root-modal时metro服务报错如下:

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

This error is located at:
  in ARTShape (created by Shape)
in Shape (created by LockStateBubble)
in ARTSurfaceView (created by Surface)
in Surface (created by LockStateBubble)
in RCTView (created by View)
in View
  in Unknown (created by LockStateBubble)
in TouchableWithoutFeedback (created by LockStateBubble)
in RCTView (created by View)
in View
  in Unknown (created by withAnimatable(View))
in withAnimatable(View) (created by ReactNativeModal)
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer (created by Modal)
in RCTView (created by View)
in View (created by Modal)
in VirtualizedListContextResetter (created by Modal)
in RCTModalHostView (created by Modal)
in Modal (created by ReactNativeModal)
in ReactNativeModal (created by LockStateBubble)
in LockStateBubble (created by HomePageToolsHeaderView)
in RCTView (created by View)
in View
  in Unknown (created by HomePageToolsHeaderView)
in HomePageToolsHeaderView (created by HomeChannel)
in RCTView (created by View)
in View (created by HomeChannel)
in RCTView (created by View)
in View (created by HomeChannel)
in HomeChannel
  in RCTView (created by View)
in View (created by AppContainer)
in ChildrenWrapper (created by Root)
in _default (created by Root)
in Root (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
  in amgpro_channel_home(RootComponent), js engine: hermes

怎么解决HarmonyOS的rnoh中没有react-native-community/art这个库的问题?

阅读 467
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进