文件最后提交记录最后更新时间
docs: turn off the obfuscation feature. Co-authored-by: 谢代荣<xiedairong@huawei.com> # message auto-generated for no-merge-commit merge: !1771 merge 77-docs into 0.77.1-rc.1-ohos docs: turn off the obfuscation feature. Created-by: xiedrsz Commit-by: 谢代荣 Merged-by: huangyouhua Description: docs: turn off the obfuscation feature. See merge request: openharmony-sig/ohos_react_native!17716 个月前
[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 年前
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 个月前
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: 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: 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: 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: 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 年前
README.md

README

This project includes two demos. One demonstrates how to push raw files to the sandbox and load the files on OpenHarmony. The other demonstrates how to load images in the sandbox on the React Native side.

Directory Structure

├── SandBoxNativeProject
|   └── Index.ets
|       ├── downloadBundle # Push raw files to the sandbox on OpenHarmony.
|       └── new FileJSBundleProvider # Load the files in the sandbox on OpenHarmony.
└── SandBoxRnProject
    └── example.tsx  # Load images in the sandbox on the React Native side.

On OpenHarmony

  1. Push files to the sandbox: Use the getRawFileContent method of the downloadBundle function to push raw files to the sandbox for subsequent read operations.
  2. Load files: Use the new FileJSBundleProvider class to load the files from the sandbox and verify the file content.

On React Native

  1. Load images from the sandbox: Use the code in example.tsx to load images from the OpenHarmony sandbox and display them in the React Native app.

Procedure

  1. In the SandBoxRnProject directory, run npm i to install the dependency and run npm run dev to generate the bundle.
  2. Open SandBoxNativeProject in DevEco Studio and run Sync and Refresh Project.
  3. Click File > Project Structure > Signing Configs, log in and complete the signing.
  4. Click run in the upper right corner to start the project.

Notes

  • Ensure that the OpenHarmony and React Native projects are correctly configured so that files can be seamlessly transferred and loaded between the two systems.
  • The sandbox path usage and file access permission need to be adjusted based on the actual environment.

Effect Preview

Push bundle to sandbox through code:

Sandbox loading effect screenshot