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这个库的问题?
该库已废弃不再更新,且HarmonyOS三方库暂无适配该库计划,参考:https://www.npmjs.com/package/@react-native-community/art
目前三方库这边有适配react-native-svg,参考:https://gitee.com/react-native-oh-library/usage-docs(搜索react-native-svg)