文件最后提交记录最后更新时间
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 天前
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

README

This is a sample project that supports capturing exceptions within bundles.

Directory Structure

├── NativeProject -- Native project
└── ReactProject -- RN project

Environment Setup

  1. In the ReactProject directory, execute pnpm i to install dependencies, then execute pnpm run dev to generate the bundle;
  2. Open NativeProject with DevEco Studio, and wait for the automatic project synchronization to complete (for manual synchronization, execute Sync and Refresh Project);
  3. Navigate to File > Project Structure > Signing Configs, log in and complete the signature configuration;
  4. Click run in the upper right corner to start the project.

NOTE: By default, the project uses the latest RNOH dependency 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

Preview

After launch, the page effects are as follows:

Screenshot_home Screenshot_reference Screenshot_standard Screenshot_Frozen Screenshot_Warning
Home Page Click [ReferenceError] button Click [Standard Error] button Click [Frozen Error] button Click [Warning] button