文件最后提交记录最后更新时间
docs: turn off the obfuscation feature. Co-authored-by: 谢代荣<xiedairong@huawei.com> # message auto-generated for no-merge-commit merge: !1770 merge master-docs into master 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!17706 个月前
fix: version in release note & node version Co-authored-by: gyange<gyange@163.com> # message auto-generated for no-merge-commit merge: !2076 merge master into master fix: version in release note & node version Created-by: gyange Commit-by: gyange Merged-by: openharmony_ci Description: <!-- 请在合并之前删除注释代码,以避免将其包含在GIT历史记录中 --> # 描述 <!-- 简要描述PR的目的,例如: 这条PR主要实现metro局域网内远程调试的功能. --> # 变更日志 <!-- 列出可包含在变更日志中的要点的主要变更。 不要列出内部更改。请以下列开头来写每个变更点: - added - fixed - deprecated - removed 如果是一条新增属性的变更,则以[added]开头,例如: - [added] FlatList组件新增inverted属性 --> # 测试步骤 <!-- 如何测试这条PR。例如: 1. 打开Tester工程. 2. 执行npm run start命令. ... --> # 合入前自检 <!-- 请在合入前根据以下条例进行自检 自检完成后在[ ]内填入"x", 例如: - [x] 不涉及非兼容性变更;若涉及,已通过相应评审。 --> - [x] 不涉及非兼容性变更;若涉及,已通过相应评审。 - [x] 不涉及性能或已进行性能测试且无性能劣化。 - [x] 符合对应的编码规范。 - [x] 不涉及文档更新,或已更新了文档。 - [ ] 针对可测试性要求,已增加必要的自测用例、合理的日志记录或Trace信息。 - [ ] 不存在非法的文件引入,包括图片和代码等 - [ ] 本PR已经在77分支开启PR或不需要在77分支合入 - 如需合入77分支,PR地址: See merge request: openharmony-sig/ohos_react_native!20764 个月前
Sample运行效果问题修改 Signed-off-by: 谢代荣 <xiedairong@huawei.com> 1 年前
[doc]: Add the step of obtaining the signature before executing run. Co-authored-by: jarayard<694161290@qq.com> # message auto-generated for no-merge-commit merge: merge master into master [doc]: Add the step of obtaining the signature before executing run. Created-by: jarayard Commit-by: jarayard Merged-by: huangyouhua Description: ## Description Add the step of obtaining the signature before executing run. ## Checklist - [x] Does not involve incompatible changes; if involved, has been reviewed accordingly. - [x] Does not impact performance, or performance testing has been conducted without degradation. - [x] Complies with the relevant coding standards. - [ ] Does not involve documentation updates, or the documentation has been updated. - [x] Meets testability requirements with necessary self-test cases, appropriate logging, or trace information added. - [x] No illegal file inclusions exist, such as images or code. See merge request: openharmony-sig/ohos_react_native!116311 个月前
[doc]: Add the step of obtaining the signature before executing run. Co-authored-by: jarayard<694161290@qq.com> # message auto-generated for no-merge-commit merge: merge master into master [doc]: Add the step of obtaining the signature before executing run. Created-by: jarayard Commit-by: jarayard Merged-by: huangyouhua Description: ## Description Add the step of obtaining the signature before executing run. ## Checklist - [x] Does not involve incompatible changes; if involved, has been reviewed accordingly. - [x] Does not impact performance, or performance testing has been conducted without degradation. - [x] Complies with the relevant coding standards. - [ ] Does not involve documentation updates, or the documentation has been updated. - [x] Meets testability requirements with necessary self-test cases, appropriate logging, or trace information added. - [x] No illegal file inclusions exist, such as images or code. See merge request: openharmony-sig/ohos_react_native!116311 个月前
Processing image component resource sandbox path-loading. md line wrapping Signed-off-by: Galen wei <1947612015@qq.com> 1 年前
Processing image component resource sandbox path-loading. md line wrapping Signed-off-by: Galen wei <1947612015@qq.com> 1 年前
Add English document Signed-off-by: Galen wei <1947612015@qq.com> 1 年前
更新赋能文档 Signed-off-by: yujunsong <look_s@163.com> 1 年前
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 @react-native-oh/react-native-harmony@x.x.x to install the dependency and run npm run dev to generate the bundle.
  2. In the entry directory, run ohpm i @rnoh/react-native-openharmony@x.x.x to install the dependency.
  3. Check whether the oh-modules folder is generated in the SandBoxNativeProject and entry directories.
  4. Open SandBoxNativeProject in DevEco Studio and run Sync and Refresh Project.
  5. Click File > Project Structure > Signing Configs, log in and complete the signing.
  6. Click run in the upper right corner to start the project.
  7. Ensure that the dependency downloaded on the Harmony and RN sides is complete and the version mapping is normal.
  8. Open the generated app and check whether the file is correctly loaded.

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.