文件最后提交记录最后更新时间
fix: tertiaryButton onPress is not working Co-authored-by: zichenyang<zichen834194@163.com> # message auto-generated for no-merge-commit merge: merge fix_alert_button_issue into 0.77.1-rc.1-ohos fix: tertiaryButton onPress is not working Created-by: zichenyang21 Commit-by: zichenyang Merged-by: huangyouhua Description: # Why are these changes being made? tertiary button onPress is not working. # Changelog correct the position of if statement. # Test Plan Run the following demo and observe pressing all buttons would trigger corrresponding log ``` import React from 'react'; import { View, Button, Alert } from 'react-native'; const App = () => { const showAlert = () => { Alert.alert( 'Action Required', 'Please select an action', [ { text: 'OK', onPress: () => console.log('OK button pressed'), }, { text: 'Later', onPress: () => console.log('Later button pressed'), style: 'destructive', }, { text: 'Cancel', onPress: () => console.log('Cancel button pressed'), style: 'cancel', }, ], { cancelable: false } ); }; return ( <View style={{ flex: 1, justifyContent: 'center', padding: 20 }}> <Button title="Show Options" onPress={showAlert} /> </View> ); }; export default App; ``` See merge request: openharmony-sig/ohos_react_native!9101 年前
chore: packages directory ## Summary This MR prepares this repository for yarn workspaces. ## Checklist - [x] Project compiles and the tester application works. ## Issue Links Related https://gl.swmansion.com/rnoh/react-native-harmony/-/issues/1487 See merge request rnoh/react-native-harmony!1802 Signed-off-by: huangyouhua <1356795413@qq.com> 1 年前
fix(Config): add missing copyright headers for warning files 问题描述: 当前 xin3.txt 清单中的 OAT.4 版权头告警文件存在缺失或无效版权头问题, 扫描结果为 Copyright Header Invalid: NULL,导致对应文件在合规检查中被判定为 致命未解决项。 解决方案: 在不改变原有业务逻辑、构建逻辑和文件内容结构的前提下,按文件类型补充统 一版权头;同时修正个别特殊文件的头部格式,使 TS/TSX/JS/ETS/脚本/模板/配 置等文件都符合仓库现有版权声明风格与注释语法要求。 影响范围: 仅影响 xin3.txt 对应告警文件的文件头注释,不改变正常功能、模块解析、构建 结果与运行时行为,对现有性能无直接影响,整体向后兼容。 Signed-off-by: jiaxuan_wong <1801330925@qq.com> 13 天前
fix: use native ViewConfigs for core components Co-authored-by: Arkadiusz Kasprzyk<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/fix-native-view-configs into 0.77.1-rc.1-ohos fix: use native ViewConfigs for core components + update RNC submodule Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk Merged-by: huangyouhua Description: ## Why is this change needed After updating to 0.77 and enabling bridgless, native view configs aren't used anymore in RNOH. Instead, RN uses ViewConfigs defined on JS side for iOS. Currently, props not supported on iOS don't work on RNOH. RNOH maintainers attempted to fix this problem by patching JS view configs. This MR aims to eliminate the root problem — enabling back native view configs for core components (they are defined in ComponentJSIBinders). ## Changes - fixed not working native view configs ## Test Plan ### 1 Check e.g. RefreshControl::disable/enable pull to refresh test case ### 2 1. Checkout RNC submodule to the branch used by this MR: https://gl.swmansion.com/rnoh/react-native-core/-/merge_requests/37 2. Add log to "getConstantsForViewManager" and notice that after applying this change that log is called for core components. ``` void RNInstanceCAPI::installJSBindings(facebook::jsi::Runtime& rt) { // install console.log (etc.) implementation react::bindNativeLogger(rt, nativeLogger); // install tracing functions rnoh::setupTracing(rt); facebook::react::bindHasComponentProvider( rt, [this](std::string const& name) { return m_componentJSIBinderByName.contains(name); }); facebook::react::LegacyUIManagerConstantsProviderBinding::install( rt, "getConstantsForViewManager", [this](auto& rt, auto const& name) -> jsi::Value { DLOG(INFO) << "@@@getConstantsForViewManager: " << name; auto componentJSIBinder = m_componentJSIBinderByName.find(name); ``` ## Checklist - [x] Does not involve incompatible changes; if involved, has been reviewed accordingly. - [ ] Does not impact performance, or performance testing has been conducted without degradation. - [ ] Complies with the relevant coding standards. - [x] Does not involve documentation updates, or the documentation has been updated. - [ ] 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!9811 年前
refactor: change react-native import to local file Signed-off-by: alvancf <742997447@qq.com> 2 个月前
feat: remove RNC release artifact Co-authored-by: Arkadiusz<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/copy-upstream-js-files into 0.77.1-rc.1-ohos feat: remove RNC release artifact Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk;Arkadiusz Merged-by: huangyouhua Description: ## Why are these changes being made? 0.77 must not introduce a new release artifact (RNC). Current approach assumes releasing RNC (React Native Core) and RNOH. This MR aims to eliminate the need of releasing RNC. ## Test Plan - Check tester and ecosystem tester for regressions. - Check Metro and offline bundles in release and dev modes. - Test release artifact in a sample project. ## 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. - [ ] ~~MR does not include a breaking change or a review has been requested from a Huawei reviewer.~~ (the package on this branch hasn't been published, so this check and changelog section don't make sense) See merge request: openharmony-sig/ohos_react_native!8751 年前
feat: remove RNC release artifact Co-authored-by: Arkadiusz<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/copy-upstream-js-files into 0.77.1-rc.1-ohos feat: remove RNC release artifact Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk;Arkadiusz Merged-by: huangyouhua Description: ## Why are these changes being made? 0.77 must not introduce a new release artifact (RNC). Current approach assumes releasing RNC (React Native Core) and RNOH. This MR aims to eliminate the need of releasing RNC. ## Test Plan - Check tester and ecosystem tester for regressions. - Check Metro and offline bundles in release and dev modes. - Test release artifact in a sample project. ## 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. - [ ] ~~MR does not include a breaking change or a review has been requested from a Huawei reviewer.~~ (the package on this branch hasn't been published, so this check and changelog section don't make sense) See merge request: openharmony-sig/ohos_react_native!8751 年前
feat: Add page level DPI control interface. Co-authored-by: haozhihang<haozhihang@huawei.com> # message auto-generated for no-merge-commit merge: !2062 merge 0.82 into 0.82 feat: Add page level DPI control interface. Created-by: haozhihang Commit-by: haozhihang Merged-by: openharmony_ci Description: <!-- PLEASE REMOVE COMMENTS BEFORE MERGING TO AVOID INCLUDING THEM IN GIT HISTORY --> ## Description Add a page level DPI control interface to control page DPI changes based on page routing paths. <!-- Briefly describe the purpose of the MR, for example: This PR mainly implements the function of remote debugging within the Metro LAN. --> ## Changes Add page level DPI control interface. <!-- List main changes in bullet points that can be included in the changelog. Those changes should be written for application developers and react third-party library authors. Internal changes shouldn't be listed. Please start each bullet point with: - added - fixed - deprecated - removed If it is a change to add a new attribute, use [added] prefix, for example: - [added] FlatList component adds inverted attribute --> ## Test Plan <!-- How to test this PR. For example: 1. Open the Tester project 2. Execute the npm run start command ... --> ## Checklist <!-- Please conduct self inspection according to the following checklist before merging After completing the self check, fill in "x" in [], For example: - [x] Does not involve incompatible changes; if involved, has been reviewed accordingly. --> - [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!20624 个月前
chore: packages directory ## Summary This MR prepares this repository for yarn workspaces. ## Checklist - [x] Project compiles and the tester application works. ## Issue Links Related https://gl.swmansion.com/rnoh/react-native-harmony/-/issues/1487 See merge request rnoh/react-native-harmony!1802 Signed-off-by: huangyouhua <1356795413@qq.com> 1 年前
feat: remove RNC release artifact Co-authored-by: Arkadiusz<arkadiusz.kasprzyk@swmansion.com> # message auto-generated for no-merge-commit merge: merge kas/copy-upstream-js-files into 0.77.1-rc.1-ohos feat: remove RNC release artifact Created-by: arkadiuszkasprzyk Commit-by: Arkadiusz Kasprzyk;Arkadiusz Merged-by: huangyouhua Description: ## Why are these changes being made? 0.77 must not introduce a new release artifact (RNC). Current approach assumes releasing RNC (React Native Core) and RNOH. This MR aims to eliminate the need of releasing RNC. ## Test Plan - Check tester and ecosystem tester for regressions. - Check Metro and offline bundles in release and dev modes. - Test release artifact in a sample project. ## 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. - [ ] ~~MR does not include a breaking change or a review has been requested from a Huawei reviewer.~~ (the package on this branch hasn't been published, so this check and changelog section don't make sense) See merge request: openharmony-sig/ohos_react_native!8751 年前
refactor: change react-native import to local file Signed-off-by: alvancf <742997447@qq.com> 2 个月前
fix:Add the isvision property of Platform and return false. Co-authored-by: haozhihang<haozhihang@huawei.com> # message auto-generated for no-merge-commit merge: !2002 merge 0.82 into 0.82 fix:Add the isvision property of Platform and return false. Created-by: haozhihang Commit-by: haozhihang 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] 不涉及非兼容性变更;若涉及,已通过相应评审。 --> - [ ] 不涉及非兼容性变更;若涉及,已通过相应评审。 - [ ] 不涉及性能或已进行性能测试且无性能劣化。 - [ ] 符合对应的编码规范。 - [ ] 不涉及文档更新,或已更新了文档。 - [ ] 针对可测试性要求,已增加必要的自测用例、合理的日志记录或Trace信息。 - [ ] 不存在非法的文件引入,包括图片和代码等 - [ ] 本PR已经在77分支开启PR或不需要在77分支合入 - 如需合入77分支,PR地址: See merge request: openharmony-sig/ohos_react_native!20024 个月前
fix: make Vibration API consistent with Android 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 fix: make Vibration API consistent with Android Created-by: zheng-jun-feng Commit-by: zheng-jun-feng Merged-by: huangyouhua Description: <!-- PLEASE REMOVE COMMENTS BEFORE MERGING TO AVOID INCLUDING THEM IN GIT HISTORY --> ## Description <!-- Briefly describe the purpose of the MR, for example: This PR mainly implements the function of remote debugging within the Metro LAN. --> https://gitcode.com/openharmony-sig/ohos_react_native/pull/997 In the above commit, we discussed a scenario where 72 is inconsistent with Android, and we treated it as a bug to fix. Fixed commit: https://gitcode.com/openharmony-sig/ohos_react_native/pull/1069 Now 72 has been aligned with Android, so 77 also needs to be aligned with Android. ## Changes <!-- List main changes in bullet points that can be included in the changelog. Those changes should be written for application developers and react third-party library authors. Internal changes shouldn't be listed. Please start each bullet point with: - added - fixed - deprecated - removed If it is a change to add a new attribute, use [added] prefix, for example: - [added] FlatList component adds inverted attribute --> ## Test Plan <!-- How to test this PR. For example: 1. Open the Tester project 2. Execute the npm run start command ... --> demo: ``` import React, { useState, useEffect } from 'react'; import { StyleSheet, Button, View, Vibration, Text } from 'react-native'; const App = () => { const [vibrationPattern] = useState([5000, 3000, 5000, 1000]); //On Android, the odd indices of the pattern array represent the vibration duration, while the even ones represent the separation time. const [time, setTime] = useState(0); const [isVibrating, setIsVibrating] = useState(false); useEffect(() => { let interval = null; if (isVibrating) { interval = setInterval(() => { setTime(prevTime => prevTime + 1); }, 1000); } else { clearInterval(interval); setTime(0); } return () => clearInterval(interval); }, [isVibrating]); const startVibrationWithPattern = () => { Vibration.vibrate(vibrationPattern, true); setIsVibrating(true); }; const stopVibrationAndResetTimer = () => { Vibration.cancel(); setIsVibrating(false); }; const vibrateOnce = () => { Vibration.vibrate(400); }; const vibrateWithPattern = () => { Vibration.vibrate(vibrationPattern, false); }; return ( <View style={styles.container}> {/* stopwatch */} <Text style={styles.timerText}>{时间: ${Math.floor(time / 60)}:${(time % 60).toString().padStart(2, '0')}}</Text> {/* Vibration control */} <Button title="Vibration for 0.4 seconds" onPress={vibrateOnce} /> <View style={styles.buttonSpacer} /> <Button title="Vibration by mode" onPress={vibrateWithPattern} /> <View style={styles.buttonSpacer} /> <Button title="Repetitive vibration mode" onPress={startVibrationWithPattern} /> <View style={styles.buttonSpacer} /> <Button title="Cancel vibration" onPress={stopVibrationAndResetTimer} /> </View> ); }; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', }, buttonSpacer: { marginVertical: 15, }, timerText: { fontSize: 24, marginBottom: 20, } }); export default App; ``` ## Checklist <!-- Please conduct self inspection according to the following checklist before merging After completing the self check, fill in "x" in [], For example: - [x] Does not involve incompatible changes; if involved, has been reviewed accordingly. --> - [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!108111 个月前