Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

当前最新svg包使用openharmony sdk15 编译会报错 #358

@niuxvdong

Description

@niuxvdong

描述 / Description

前提:我要为系统为openharmony 5.0.3 API 版本为15设备编译使用

我当前版本如下

@react-native-oh-tpl/react-native-svg": "15.0.1-rc.6",
@react-native-oh/react-native-harmony": "0.72.96",  // 0.72.75-0.72.96都尝试了一样的问题
Image

修改版本后:同样有很多编译报错问题

@react-native-oh-tpl/react-native-svg": "^13.14.0-0.4.8",
@react-native-oh/react-native-harmony": "0.72.96",  // 0.72.75-0.72.96都尝试了一样的问题
Image

复现步骤 / Steps to reproduce

1、使用当前库最新版本15.0.1-rc.6会编译报错 RemoteCommunicationKit/rcp.h 不存在
2、排查发现 harmonyOS sdk 有这个,开源 openharmony没有,于是迁移对应头文件到 openharmony
3、发现这个不报错,但仍有其他错误

还有一个疑问:对于系统是openharmony 5.0.3 API15的设备,推荐这两个依赖的版本是多少呢?当前库是否适配开源 openharmony 系统呢?

库版本 / Library version

15.0.1-rc.6

React Native OpenHarmony version

0.72.75 - 0.72.96

构建类型 / Build type

None

设备 / Device

None

设备版本 / Device model

No response

已悉知 / Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions