文件最后提交记录最后更新时间
doc: upgrade samples Co-authored-by: linhandev<hanlin21@huawei.com> # message auto-generated for no-merge-commit merge: merge sample-upgrade into 0.77.1-rc.1-ohos doc: upgrade samples Created-by: linhandev Commit-by: linhandev Merged-by: huangyouhua Description: ## Why are these changes being made? Upgrade sample projects to 77 ## Changelog - added sample projects using rnoh 77 ## Test Plan Build and run all the samples ## Checklist - [x] pnpm verify command has passed successfully. - [x] No failures occurred in automatic tests on the CONCURRENT TESTER page in the tester app. - [x] No failures occurred in automatic tests on the SEQUENTIAL TESTER page in the tester app. - [x] MR does not include a breaking change or a review has been requested from a Huawei reviewer. See merge request: openharmony-sig/ohos_react_native!126010 个月前
docs(Docs):update samples update samples Signed-off-by: fangyygw <fang_zhen@hoperun.com> 7 天前
[chore]: updated to version 6.1.0.370(0.82.21) Signed-off-by: dengjiangtao <1442949715@qq.com> 2 个月前
docs: Add sample project and docs Co-authored-by: zheng-jun-feng<949815885@qq.com> # message auto-generated for no-merge-commit merge: merge 0.77.1-rc.1-ohos into 0.77.1-rc.1-ohos docs: Add sample project and docs Created-by: zheng-jun-feng Commit-by: zheng-jun-feng Merged-by: huangyouhua Description: Port sample and doc to 77 branch See merge request: openharmony-sig/ohos_react_native!10041 年前
docs(Docs):0.84版本docs英文文档更新 更新英文文档内容到0.84版本 Signed-off-by: fangyygw <fang_zhen@hoperun.com> 4 天前
docs(Docs):0.84版本docs英文文档更新 更新英文文档内容到0.84版本 Signed-off-by: fangyygw <fang_zhen@hoperun.com> 4 天前
README.md

Description

This is a demo project for creating custom Fabric components (including CAPI and ArkTS components).

Directory Structure

FabricComponentSample
├── ReactProject Front-end project
├── fabric-component-sample-package RN third-party component (custom Fabric component)
├── NativeProject OpenHarmony project
├── react-native-harmony RN OpenHarmony bundle
├── react-native-harmony-cli RN OpenHarmony scaffolding
└── README.md

Environment Setup

  1. Run pnpm pack in fabric-component-sample-package to generate a .tgz file.
  2. Run npm i in ReactProject to install the dependency, then execute pnpm dev to generate the bundle.harmony.js;
  3. Open NativeProject in DevEco Studio and wait for the automatic project synchronization to complete (for manual synchronization, execute Sync and Refresh Project);
  4. Go back to DevEco Studio and click File > Project Structure > Signing Configs, log in and complete the signing.
  5. Click run in the upper right corner to start the project.

NOTE: The project uses the latest RNOH dependencies by default during installation. If you need to install a specific version, please refer to RNOH Version Evolution Planning and Branch Strategy to get the version number.

npm dependency installation: npm i @react-native-oh/react-native-harmony@0.84.xx npm i --save-dev @react-native-oh/react-native-harmony-cli@0.84.xx

ohpm dependency installation: ohpm i @rnoh/react-native-openharmony@0.84.xx