React Native鸿蒙化仓库
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
chore: update MR template # message auto-generated for no-merge-commit merge: merge kas/update-mr-template into 0.77.1-rc.1-ohos chore: update MR template Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Merged-by: my_performance Description: ## Why are these changes being made? Huawei and SWM devs has started recently working on one branch. This MR template aims to unify the workflow for both teams. Also, the current template isn't compatible with the script that generates the changelog. I changed the header for this section, in order to encourage devs to explain "why" the change is needed, not "what" is being change. I also updated the script that generates changelog, to search for "Changelog" section. I removed the check about performance, since we can't currently realistically verify that for every MR without performance tests or instructions how to do it. ## Changelog ## Test Plan When creating this MR, I noticed that the current template on the 77 branch wasn't used. I think GitCode uses the template from master branch, and the english template seems to be ignored. On GitLab it's possible to choose one of many templates from the droplist, but it looks it's not possible on the GitCode. I think we will need to manually copy this template on 0.77 branch at least for now. ## 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] If the MR includes a breaking change, a review has been requested from a Huawei reviewer. See merge request: openharmony-sig/ohos_react_native!643 | 1 年前 | |
docs: turn off the obfuscation feature. Signed-off-by: 谢代荣 <xiedairong@huawei.com> | 10 个月前 | |
[chore]: updated to version 6.0.1.120(0.77.31) Co-authored-by: jiaxuan_wong<1801330925@qq.com> # message auto-generated for no-merge-commit merge: !1764 merge 0.77.1-rc.1-ohos into 0.77.1-rc.1-ohos [chore]: updated to version 6.0.1.120(0.77.31) Created-by: jiaxuan_wong Commit-by: jiaxuan_wong Merged-by: huangyouhua Description: <!-- 请在合并之前删除注释代码,以避免将其包含在GIT历史记录中 --> # 描述 <!-- 简要描述PR的目的,例如: 这条PR主要实现metro局域网内远程调试的功能. --> # 变更日志 <!-- 列出可包含在变更日志中的要点的主要变更。 不要列出内部更改。请以下列开头来写每个变更点: - added - fixed - deprecated - removed 如果是一条新增属性的变更,则以[added]开头,例如: - [added] FlatList组件新增inverted属性 --> # 测试步骤 <!-- 如何测试这条PR。例如: 1. 打开Tester工程. 2. 执行npm run start命令. ... --> # 合入前自检 <!-- 请在合入前根据以下条例进行自检 自检完成后在[ ]内填入"x", 例如: - [x] 不涉及非兼容性变更;若涉及,已通过相应评审。 --> - [ ] 不涉及非兼容性变更;若涉及,已通过相应评审。 - [ ] 不涉及性能或已进行性能测试且无性能劣化。 - [ ] 符合对应的编码规范。 - [ ] 不涉及文档更新,或已更新了文档。 - [ ] 针对可测试性要求,已增加必要的自测用例、合理的日志记录或Trace信息。 - [ ] 不存在非法的文件引入,包括图片和代码等 - [ ] 本PR已经在77分支开启PR或不需要在77分支合入 - 如需合入77分支,PR地址: See merge request: openharmony-sig/ohos_react_native!1764 | 10 个月前 | |
refactor: remove the codegen-harmony configuration from sample-package. Co-authored-by: 谢代荣<xiedairong@huawei.com> # message auto-generated for no-merge-commit merge: merge sample into 0.77.1-rc.1-ohos refactor: remove the codegen-harmony configuration from sample-package. Created-by: xiedrsz Commit-by: 谢代荣 Merged-by: huangyouhua Description: ## Why are these changes being made? This version will release a bytecode-format release HAR package. This format of HAR package does not allow ets code to be generated under the rnoh module. Therefore, it is necessary for the sample-package to manage its own codegen-generated code. ## Changelog - removed the codegen-harmony configuration from sample-package. ## Test Plan 1. Open the tester. 1. Check the CustomeNativeComponent test case. ## 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!1561 | 1 年前 | |
chore: add license scanning config, change some licence headers # message auto-generated for no-merge-commit merge: merge license into 0.77.1-rc.1-ohos chore: add license scanning config, change some licence headers Created-by: linhandev Commit-by: linhandev Merged-by: huangyouhua Description: ## Why are these changes being made? - Add license header scanning config. Without that oat config codecheck task in start build would fail while adding new source code file. - Config files don't usually get license headers, but since clang configs takes comments, I'd like to add license headers in them to be on the safe side. pnpm verify and format both works after this change. - Our jsvm related code license header is referencing non existing LICENSE-MIT file, changed that to LICENSE - RNTypes.ts is mainly copied from upstream, it should use meta's license ## Changelog ## Test Plan Add a new source code file with hw license header, ci should pass ## Checklist - [x] pnpm verify command has passed successfully. ~~- [ ] No failures occurred in automatic tests on the CONCURRENT TESTER page in the tester app.~~ ~~- [ ] 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!862 | 1 年前 | |
chore: add license scanning config, change some licence headers # message auto-generated for no-merge-commit merge: merge license into 0.77.1-rc.1-ohos chore: add license scanning config, change some licence headers Created-by: linhandev Commit-by: linhandev Merged-by: huangyouhua Description: ## Why are these changes being made? - Add license header scanning config. Without that oat config codecheck task in start build would fail while adding new source code file. - Config files don't usually get license headers, but since clang configs takes comments, I'd like to add license headers in them to be on the safe side. pnpm verify and format both works after this change. - Our jsvm related code license header is referencing non existing LICENSE-MIT file, changed that to LICENSE - RNTypes.ts is mainly copied from upstream, it should use meta's license ## Changelog ## Test Plan Add a new source code file with hw license header, ci should pass ## Checklist - [x] pnpm verify command has passed successfully. ~~- [ ] No failures occurred in automatic tests on the CONCURRENT TESTER page in the tester app.~~ ~~- [ ] 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!862 | 1 年前 | |
chore: add .gitattributes for proper EOL handling # message auto-generated for no-merge-commit merge: merge @pklatka/prettier-endline into 0.77.1-rc.1-ohos chore: add .gitattributes for proper EOL handling Created-by: pklatkaa Commit-by: Patryk Klatka Merged-by: my_performance Description: ## Why are these changes being made? Due to the different EOL characters in some files, the verify script was crashing on Windows. This PR ensures that LF is used as an EOL character, in order to normalize the behavior across platforms. The approach used in this PR can be compared to setting git config core.autocrlf false manually. Note: this syntax only works in git versions greater than 2.10, see https://github.com/git/git/blob/master/Documentation/RelNotes/2.10.0.adoc. ## Test Plan Clone the fresh repository, checkout to this branch and run pnpm run verify in testerino (tester package fails due to some bad-written TS code) ## 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. ## Issue links https://gitcode.com/openharmony-sig/ohos_react_native/issues/414 See merge request: openharmony-sig/ohos_react_native!684 | 1 年前 | |
refactor: remove the codegen-harmony configuration from sample-package. Co-authored-by: 谢代荣<xiedairong@huawei.com> # message auto-generated for no-merge-commit merge: merge sample into 0.77.1-rc.1-ohos refactor: remove the codegen-harmony configuration from sample-package. Created-by: xiedrsz Commit-by: 谢代荣 Merged-by: huangyouhua Description: ## Why are these changes being made? This version will release a bytecode-format release HAR package. This format of HAR package does not allow ets code to be generated under the rnoh module. Therefore, it is necessary for the sample-package to manage its own codegen-generated code. ## Changelog - removed the codegen-harmony configuration from sample-package. ## Test Plan 1. Open the tester. 1. Check the CustomeNativeComponent test case. ## 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!1561 | 1 年前 | |
refactor: use react-native submodule + patch instead of private react-native-core submodule Co-authored-by: zheng-jun-feng<949815885@qq.com> Co-authored-by: linhandev<hanlin21@huawei.com> # message auto-generated for no-merge-commit merge: merge 0.77.1-rc.1-ohos into 0.77.1-rc.1-ohos refactor: use react-native submodule + patch instead of private react-native-core submodule Created-by: zheng-jun-feng Commit-by: zheng-jun-feng;linhandev Merged-by: huangyouhua Description: ## Description https://gitcode.com/openharmony-sig/ohos_react_native/pull/1220 Relying on this code, the conflict was resolved, and the patch was updated. Currently, private React Native Core is used as a submodule as a temporary measure (RNC can't be public due to internal policy). This MR uses RN submodule + patch generated from RNC - approach. ## Test Plan 1. Clone this branch . 1. Run pnpm init-ws. 1. Run tester. ## 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. - [ ] TODO: make react-native-core/v0.77.1-2 default in RNC repo once this MR is merged See merge request: openharmony-sig/ohos_react_native!1373 | 1 年前 | |
chore: fix Metro config to support local images when using Metro;: fix displaying react-native icons in testers; ignore checking links to npm Co-authored-by: Arkadiusz Kasprzyk<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/fix-images-from-metro into 0.77.1-rc.1-ohos chore: fix Metro config to support local images when using Metro;: fix displaying react-native icons in testers; ignore checking links to npm Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk Merged-by: huangyouhua Description: ## Description Currently, tester 61 setup doesn't display local images when using Metro. A previous attempt with changing projectRoot in metro config introduced a transpilation error. This approach is different. It also fixes the problem with react icons not being displayed in testers. This MR also ignores checking links to npm in the docs because verify:docs started to fail (links are valid — tested manually). ## Changes - [fixed] fixed interop61 tester Metro config to display local images hosted by Metro server ## Test Plan Check Plain Static Image example in tester 61. ## 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. - [x] 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!1590 | 1 年前 | |
chore: Init RNOH Interop 61 Project Co-authored-by: Arkadiusz Kasprzyk<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/interop-tester-package into 0.77.1-rc.1-ohos chore: Init RNOH Interop 61 Project Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk Merged-by: huangyouhua Description: ## Description RNOH Interop 61 Project aims to support RN 61 API so that legacy projects can adopt RNOH without updating their projects on Android and iOS to the new architecture. RNOH Interop 61 package will use the latest RNOH under the hood. This MR adds 2 new packages to monorepo. Tester package also proves that a code can be shared between 2 NPM projects. ## Changes ## Test Plan Run the tester project according to packages/react-native-harmony-61-interop-tester/README.md. ## 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. - [x] 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!1334 | 1 年前 | |
feat: remove deps needing private repo Co-authored-by: linhandev<hanlin21@huawei.com> # message auto-generated for no-merge-commit merge: merge token into 0.77.1-rc.1-ohos feat: remove deps needing private repo Created-by: linhandev Commit-by: linhandev Merged-by: huangyouhua Description: ## Why are these changes being made? We shouldn't be using private registry for public project. This pr removes the need for the private npm registry ## Changelog ## Test Plan Fresh clone, init-ws and tester-ecosystem build works. ## 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!919 | 1 年前 | |
[chore]: updated to version 6.0.1.120(0.77.31) Co-authored-by: jiaxuan_wong<1801330925@qq.com> # message auto-generated for no-merge-commit merge: !1764 merge 0.77.1-rc.1-ohos into 0.77.1-rc.1-ohos [chore]: updated to version 6.0.1.120(0.77.31) Created-by: jiaxuan_wong Commit-by: jiaxuan_wong Merged-by: huangyouhua Description: <!-- 请在合并之前删除注释代码,以避免将其包含在GIT历史记录中 --> # 描述 <!-- 简要描述PR的目的,例如: 这条PR主要实现metro局域网内远程调试的功能. --> # 变更日志 <!-- 列出可包含在变更日志中的要点的主要变更。 不要列出内部更改。请以下列开头来写每个变更点: - added - fixed - deprecated - removed 如果是一条新增属性的变更,则以[added]开头,例如: - [added] FlatList组件新增inverted属性 --> # 测试步骤 <!-- 如何测试这条PR。例如: 1. 打开Tester工程. 2. 执行npm run start命令. ... --> # 合入前自检 <!-- 请在合入前根据以下条例进行自检 自检完成后在[ ]内填入"x", 例如: - [x] 不涉及非兼容性变更;若涉及,已通过相应评审。 --> - [ ] 不涉及非兼容性变更;若涉及,已通过相应评审。 - [ ] 不涉及性能或已进行性能测试且无性能劣化。 - [ ] 符合对应的编码规范。 - [ ] 不涉及文档更新,或已更新了文档。 - [ ] 针对可测试性要求,已增加必要的自测用例、合理的日志记录或Trace信息。 - [ ] 不存在非法的文件引入,包括图片和代码等 - [ ] 本PR已经在77分支开启PR或不需要在77分支合入 - 如需合入77分支,PR地址: See merge request: openharmony-sig/ohos_react_native!1764 | 10 个月前 | |
chore: add Huawei Technologies copyright and update NOTICE.md ## Summary This PR adds licenses and notices from gitee repo added by Huawei and combines it with our repo. It's better to have more legal mumbo jumbo than less. Related https://gl.swmansion.com/rnoh/react-native-harmony/-/issues/1425 See merge request rnoh/react-native-harmony!1727 Signed-off-by: huangyouhua <1356795413@qq.com> | 1 年前 | |
Chore: add RNTester from upstream repo Co-authored-by: Przemysław Sosna<przemyslaw.sosna@swmansion.com> # message auto-generated for no-merge-commit merge: merge @sosen/official-tester into 0.77.1-rc.1-ohos Chore: add RNTester from upstream repo Created-by: PrzemekSosna Commit-by: Przemysław Sosna Merged-by: huangyouhua Description: ## Description This adds the official RNTester from the upstream repo. ## Changes - added official RNTester for purposes of 0.61 interop tester ## Test Plan 1. Register the official RNTester in index.js of legacy-rn61-project, and try to run it on Harmony. 2. Test on android by running the legacy project with the RNTester registered in index.js. ## 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. - [x] 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!1375 | 1 年前 | |
chore: add Huawei Technologies copyright and update NOTICE.md ## Summary This PR adds licenses and notices from gitee repo added by Huawei and combines it with our repo. It's better to have more legal mumbo jumbo than less. Related https://gl.swmansion.com/rnoh/react-native-harmony/-/issues/1425 See merge request rnoh/react-native-harmony!1727 Signed-off-by: huangyouhua <1356795413@qq.com> | 1 年前 | |
feat(interop-61): CheckBox Co-authored-by: Arkadiusz Kasprzyk<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/implement-checkbox into 0.77.1-rc.1-ohos feat(interop-61): CheckBox Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk Merged-by: huangyouhua Description: ## Description This MR adds CheckBox implementation in interop61 package. ## Changes ## Test Plan Open CheckBox page in the official RNTester in interop61 tester project. Compare behavior with Android. ## 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. - [x] 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!1379 | 1 年前 | |
feat(interop-61): CheckBox Co-authored-by: Arkadiusz Kasprzyk<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/implement-checkbox into 0.77.1-rc.1-ohos feat(interop-61): CheckBox Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk Merged-by: huangyouhua Description: ## Description This MR adds CheckBox implementation in interop61 package. ## Changes ## Test Plan Open CheckBox page in the official RNTester in interop61 tester project. Compare behavior with Android. ## 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. - [x] 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!1379 | 1 年前 | |
Add pickerIOS to tester61 Co-authored-by: Marwyk2003<marcin.wykpis@swmansion.com> # message auto-generated for no-merge-commit merge: !1612 merge add-picker-ios into 0.77.1-rc.1-ohos Add pickerIOS to tester61 Created-by: Marwyk2003 Commit-by: Marwyk2003 Merged-by: huangyouhua Description: ## Description Create picker ios for rn61. Ios and harmony comparision: Known issue: Currently TextPicker ArkTS component does not support text alignment.  ## Changes Add pickerIOS implementation to tester61. ## Test Plan Open tester61 -> PickerIOS Compare the results. ## 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. - [x] 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!1612 | 11 个月前 | |
chore: updates locks Co-authored-by: Arkadiusz Kasprzyk<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/update-locks into 0.77.1-rc.1-ohos chore: updates locks; fix "There are some dependency names that are inconsistent with the actual package names" Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk Merged-by: huangyouhua Description: ## Description Releases don't move the codebase into a consistent state. Changes in this MR (except the link in README.md) happen automatically after pnpm init-ws and running harmony projects. After reinstalling RNOH projects, a new problem occurred: Error Message: There are some dependency names that are inconsistent with the actual package names. ╰→ Caused by: Original Error: local dependency "rnoh" found in It is caused either by the new DevEco v6 to which I've just switched, or this change "fix: issues where the hvigor plugin fails to recognize commands such as link-harmony and cannot execute the CreateJSBundle task". In any case, this MR also fixes this issue. ## Changes ## Test Plan Run RNOH tester and 61 tester on Harmony. ## 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. - [x] 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!1634 | 1 年前 | |
Include interop code generation in init-ws and remove generated files Co-authored-by: michalzuch<michal.zuch@swmansion.com> # message auto-generated for no-merge-commit merge: !1706 merge 61-ignore-codegen into 0.77.1-rc.1-ohos Include interop code generation in init-ws and remove generated files Created-by: michalzuch Commit-by: michalzuch Merged-by: huangyouhua Description: ## Why are these changes being made? Code generated using codegen-lib does not need to be included in the repository. Removing it reduces the number of git conflicts and ensures it is always up to date. ## Changelog - added codegen:61 step into init-ws script - added gitignore for interop generated files - removed generated files ## Test Plan 1. Run the init-ws script and check that the files were generated in the interop package 2. Build the interop tester to ensure everything compiles and functions as expected ## 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!1706 | 11 个月前 | |
chore: updates locks Co-authored-by: Arkadiusz Kasprzyk<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/update-locks into 0.77.1-rc.1-ohos chore: updates locks; fix "There are some dependency names that are inconsistent with the actual package names" Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk Merged-by: huangyouhua Description: ## Description Releases don't move the codebase into a consistent state. Changes in this MR (except the link in README.md) happen automatically after pnpm init-ws and running harmony projects. After reinstalling RNOH projects, a new problem occurred: Error Message: There are some dependency names that are inconsistent with the actual package names. ╰→ Caused by: Original Error: local dependency "rnoh" found in It is caused either by the new DevEco v6 to which I've just switched, or this change "fix: issues where the hvigor plugin fails to recognize commands such as link-harmony and cannot execute the CreateJSBundle task". In any case, this MR also fixes this issue. ## Changes ## Test Plan Run RNOH tester and 61 tester on Harmony. ## 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. - [x] 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!1634 | 1 年前 | |
refactor: use react-native submodule + patch instead of private react-native-core submodule Co-authored-by: zheng-jun-feng<949815885@qq.com> Co-authored-by: linhandev<hanlin21@huawei.com> # message auto-generated for no-merge-commit merge: merge 0.77.1-rc.1-ohos into 0.77.1-rc.1-ohos refactor: use react-native submodule + patch instead of private react-native-core submodule Created-by: zheng-jun-feng Commit-by: zheng-jun-feng;linhandev Merged-by: huangyouhua Description: ## Description https://gitcode.com/openharmony-sig/ohos_react_native/pull/1220 Relying on this code, the conflict was resolved, and the patch was updated. Currently, private React Native Core is used as a submodule as a temporary measure (RNC can't be public due to internal policy). This MR uses RN submodule + patch generated from RNC - approach. ## Test Plan 1. Clone this branch . 1. Run pnpm init-ws. 1. Run tester. ## 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. - [ ] TODO: make react-native-core/v0.77.1-2 default in RNC repo once this MR is merged See merge request: openharmony-sig/ohos_react_native!1373 | 1 年前 | |
feat(interop-61): support Picker component Co-authored-by: Arkadiusz Kasprzyk<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/picker-61-attempt-3 into 0.77.1-rc.1-ohos feat(interop-61): support Picker component Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk Merged-by: huangyouhua Description: ## Description This MR adds support for Picker component, which is exported by RN 61 API. The implementation includes extra RNOH specific prop — selectedItemStyle, because OHOS uses by default a blue color to show selection. (I suspect many application developers may need to adapt that color to match the theme of their application.)  ## Changes - [added] Picker component support in interop-61 package ## Test Plan Compare Picker examples in RN Tester 61 with Android. - "Colorful pickers" example isn't supported on OHOS due to platform API limitations. - "Picker with prompt message" example also doesn't work, but this is also the case for Android. ## 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. - [x] 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!1544 | 1 年前 |
React Native for OpenHarmony (RNOH)
本项目为 React Native 跨平台应用开发框架添加 OpenHarmony 平台支持
| 角色 / Role | 中文文档 | English Docs |
|---|---|---|
| 应用开发者 / Application Developer | README.md | README.md |
| 库开发者 / Library Developer | — | README.md |
| 维护者或贡献者 / Maintainer or Contributor | 启动开发 | README.md |
RNOH版本演进规划和分支策略
您可以在RNOH版本演进规划和分支策略中了解更多关于我们对React Native的OpenHarmony适配版本的说明。
启动开发
前置条件
- HarmonyOS NEXT 模拟器或真机:本项目需要在HarmonyOS NEXT上进行测试
- 华为开发者账号:运行应用程序时,需要用到华为开发者账号对应用进行签名
- DevEco Studio:从官网下载并安装最新版本 DevEco Studio
- 参考官网指导安装 Node.js >= 18的版本
框架开发
您可以连接测试机或模拟器后在bash中执行如下命令,之后直接从第8步开始
git clone https://gitcode.com/openharmony-sig/ohos_react_native.git && cd ohos_react_native && git switch 0.77.1-rc.1-ohos && npm install -g pnpm@latest-10 && pnpm init-ws && pnpm dev
- 拉取本项目代码
git clone https://gitcode.com/openharmony-sig/ohos_react_native.git - 进入项目目录
cd ohos_react_native - 对 React Native 0.77 版本的适配当前在特性分支上进行,切换到该分支
git switch 0.77.1-rc.1-ohos - 安装pnpm
npm install -g pnpm@latest-10 - 进行项目初始化
pnpm init-ws(过程中会拉取一批submodule和安装npm依赖,受网速影响可能耗时较长) - 连接设备并开启usb调试功能,或启动模拟器
- 启动 metro 和测试工具
pnpm dev - 在 DevEco Studio 中打开
packages/tester/harmony项目并等待后台同步完成 - 点击 File > Project Structure > Signing Configs,登录并完成签名
- 在右上角选择项目配置下拉中选中
entry - 点击右上角绿色三角箭头【Run 'entry'】按钮,运行项目
说明: tester项目主要在开发过程中用于自测试,如在运行tester中的用例时遇到问题,请提issue咨询。
使用说明
- React Native的使用问题可查阅React Native 官网或React Native 中文网。
- RNOH的使用问题可查阅中文文档或英文文档。