Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否支持打包成供鸿蒙使用的bundle文件 #16151

Closed
AaronHuange opened this issue Jul 24, 2024 · 0 comments
Closed

是否支持打包成供鸿蒙使用的bundle文件 #16151

AaronHuange opened this issue Jul 24, 2024 · 0 comments
Labels
F-react Framework - React T-harmony Target - 编译到 Harmony V-3 Version - 3.x

Comments

@AaronHuange
Copy link

相关平台

鸿蒙

使用框架: React

复现步骤

现阶段鸿蒙使用RN相关代码有3种方案:
1.将原始react native项目集成到鸿蒙中(鸿蒙官方提供):
文档:-
优势:支持度比较大,可以打成bundle文件。也有提供专门的交互文档。
缺点:需要原始react native项目。提供的文档都没有说明关于taro项目的兼容。不适用

2.taro项目代码生成鸿蒙项目,类似生成全新小程序项目一样(taro提供):
文档:https://docs.taro.zone/en/docs/next/harmony#%E4%BD%BF%E7%94%A8-taro-%E5%BC%80%E5%8F%91%E9%B8%BF%E8%92%99-arkui
优势: 方便快速开发鸿蒙项目
缺点:每次打包都是全新项目,类似生成小程序项目一样。无法集成到现有的鸿蒙项目中

3.将taro项目打包成鸿蒙的h5资源,用webview加载(taro提供):
文档:https://docs.taro.zone/en/docs/harmony-hybrid/
优势:集成到现有的鸿蒙项目中
缺点:要用桥方法,通过webview交互

期望结果

可以向安卓和ios一样构建出bundle文件

实际结果

没有任何文档有说明该功能

环境信息

鸿蒙beta1

 Taro CLI 4.0.0-beta.121 environment info:
    System:
      OS: macOS 13.3
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.17.0 - /usr/local/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 9.6.7 - /usr/local/bin/npm




@taro-bot2 taro-bot2 bot added F-react Framework - React T-harmony Target - 编译到 Harmony V-3 Version - 3.x labels Jul 24, 2024
This was referenced Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-harmony Target - 编译到 Harmony V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

1 participant