| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix: Alert button order is not consistant Co-authored-by: zichenyang21<zichen834194@163.com> # message auto-generated for no-merge-commit merge: merge alert_button_order into master fix: Alert button order is not consistant Created-by: zichenyang21 Commit-by: zichenyang;zichenyang21 Merged-by: huangyouhua Description: <!-- 请在合并之前删除注释代码,以避免将其包含在GIT历史记录中 --> # 描述 <!-- 简要描述PR的目的,例如: 这条PR主要实现metro局域网内远程调试的功能. --> 修复Alert中Button顺序问题 # 变更日志 <!-- 列出可包含在变更日志中的要点的主要变更。 不要列出内部更改。请以下列开头来写每个变更点: - added - fixed - deprecated - removed 如果是一条新增属性的变更,则以[added]开头,例如: - [added] FlatList组件新增inverted属性 --> 修改thirdaryButton 为 tertiaryButton 修改推入Button的顺序,与之前版本保持一致 # 测试步骤 <!-- 如何测试这条PR。例如: 1. 打开Tester工程. 2. 执行npm run start命令. ... --> 运行以下demo,Button顺序为左边取消,右边确定 import React from 'react'; import { View, Button, Alert, StyleSheet, Text } from 'react-native'; const AlertDemo = () => { const showAlert = () => { Alert.alert( "提示", // 标题 "你确定要执行此操作吗?", // 消息内容 [ { text: "取消", // 左边按钮 onPress: () => console.log("取消 pressed"), style: "cancel" }, { text: "确定", // 右边按钮 onPress: () => console.log("确定 pressed") } ], { cancelable: false } // 点击外部不关闭 ); }; return ( <View style={styles.container}> <Text style={styles.title}>Alert 示例</Text> <Button title="显示 Alert" onPress={showAlert} color="#007AFF" // iOS 蓝色按钮 /> </View> ); }; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', padding: 20, backgroundColor: '#f5f5f5' }, title: { fontSize: 20, fontWeight: 'bold', marginBottom: 30 } }); export default AlertDemo; # 合入前自检 <!-- 请在合入前根据以下条例进行自检 自检完成后在[ ]内填入"x", 例如: - [x] 不涉及非兼容性变更;若涉及,已通过相应评审。 --> - [x] 不涉及非兼容性变更;若涉及,已通过相应评审。 - [x] 不涉及性能或已进行性能测试且无性能劣化。 - [x] 符合对应的编码规范。 - [x] 不涉及文档更新,或已更新了文档。 - [x] 针对可测试性要求,已增加必要的自测用例、合理的日志记录或Trace信息。 - [x] 不存在非法的文件引入,包括图片和代码等 - [x] 本PR已经在77分支开启PR或不需要在77分支合入 - 如需合入77分支,PR地址: See merge request: openharmony-sig/ohos_react_native!1038 | 1 年前 | |
fix: values from animated props aren't set correctly after finishing animation with native driver, leading to wrong values in measure. Co-authored-by: Przemysław Sosna<przemyslaw.sosna@swmansion.com> # message auto-generated for no-merge-commit merge: !1287 merge @sosen/animated-props-fix into master fix: values from animated props aren't set correctly after finishing animation with native driver, leading to wrong values in measure. Created-by: PrzemekSosna Commit-by: Przemysław Sosna Merged-by: huangyouhua Description: ## Description When using the native driver for animations that involve layout changes (ie. translateY and other transforms, but not styles such as opacity), because it bypasses Fabric, the new coordinates are not updated so the values returned by measure are incorrect. This was actually fixed on 0.77, so this PR is a cherrypick of "Trigger rerender on animation complete (#37836)" from the upstream RN repository and "fix: values for animated props are not set correctly after display changes to none" from the 0.77 branch. "fix: the infinite loop caused by the error "Animated node with tag xxx does not exist"." (d7083d23e9573c805196f813d5c1051c702e150c) is also cherrypicked, as without that native driver is bugged and after a coupld of animations doesn't work properly. ## Changes - fix: values from animated props aren't set correctly after finishing animation with native driver, leading to wrong values in measure. ## Test Plan Check the code below, after pressing "Measure Box", the height logged should be 100. tsx import React, {useLayoutEffect, useRef} from 'react'; import {TouchableOpacity, View, Text, Animated} from 'react-native'; export default function App() { const scaleValue = useRef(new Animated.Value(0.2)).current; const boxRef = useRef<View>(null); React.useEffect(() => { Animated.spring(scaleValue, { toValue: 1, friction: 3, useNativeDriver: true, }).start(); }, []); const measureBox = () => { boxRef.current?.measure((x, y, width, height, pageX, pageY) => { console.log({x, y, width, height, pageX, pageY}); }); }; useLayoutEffect(() => { measureBox(); }, []); return ( <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center', gap: 40, }}> <TouchableOpacity onPress={measureBox} style={{padding: 10, backgroundColor: '#eee'}}> <Text>Measure Box</Text> </TouchableOpacity> <Animated.View ref={boxRef} style={{ width: 100, height: 100, backgroundColor: 'orange', borderRadius: 8, transform: [{scale: scaleValue}], justifyContent: 'center', alignItems: 'center', }}> <Text>Scaled Box</Text> </Animated.View> </View> ); } ## 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!1287 | 10 个月前 | |
feat:Add an event to get the Level value on onMemoryLevel(0.72) Signed-off-by: m0_74809428 <2303753180@qq.com> | 6 个月前 | |
feat(ScrollView): add HarmonyOS-specific flingSpeedLimit property Signed-off-by: luqi <luqi7@huawei.com> | 6 个月前 | |
fix: remove setUpErrorHandling patch Closes #773 Signed-off-by: hyh <huangyouhua2@huawei.com> | 2 年前 | |
feat: support automatic selection of high-density image variants. Co-authored-by: 谢代荣<xiedairong@huawei.com> # message auto-generated for no-merge-commit merge: merge master-image into master feat: support automatic selection of high-density image variants. Created-by: xiedrsz Commit-by: 谢代荣 Merged-by: huangyouhua Description: ## Description A requirement has been raised by partners for RNOH to automatically choose optimal images based on pixel density ratios. To address this, we have implemented an automated multi-density image selection feature. Currently, RNOH provides support for four pixel density scale factors: 1x, 2x, 3x, and 4x. ## Changes - support automatic selection of high-density image variants. ## Test Plan 1. Open the Tester. 2. Check the ImageTest. ## 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!1395 | 1 年前 | |
Add focusable Signed-off-by: hyh <huangyouhua2@huawei.com> | 2 年前 | |
fix:I18nManager Optimization Co-authored-by: zheng-jun-feng<949815885@qq.com> # message auto-generated for no-merge-commit merge: !1958 merge master into master fix:I18nManager Optimization Created-by: zheng-jun-feng Commit-by: zheng-jun-feng Merged-by: openharmony_ci Description: <!-- 请在合并之前删除注释代码,以避免将其包含在GIT历史记录中 --> # 描述 <!-- 简要描述PR的目的,例如: 这条PR主要实现metro局域网内远程调试的功能. --> 对I18nManager进行优化 # 变更日志 <!-- 列出可包含在变更日志中的要点的主要变更。 不要列出内部更改。请以下列开头来写每个变更点: - 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!1958 | 8 个月前 | |
feat: Add page level DPI control interface. Co-authored-by: haozhihang<haozhihang@huawei.com> # message auto-generated for no-merge-commit merge: !2058 merge master into master 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!2058 | 8 个月前 | |
fix: 并行化js侧修改 Co-authored-by: zheng-jun-feng<949815885@qq.com> # message auto-generated for no-merge-commit merge: !1944 merge master into master fix: 并行化js侧修改 Created-by: zheng-jun-feng Commit-by: zheng-jun-feng 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!1944 | 8 个月前 | |
SafeAreaView Signed-off-by: hyh <huangyouhua2@huawei.com> | 2 年前 | |
Implemented Share Turbo Module ## Summary Signed-off-by: hyh <huangyouhua2@huawei.com> | 2 年前 | |
Support PlatfromColor Signed-off-by: hyh <huangyouhua2@huawei.com> | 2 年前 | |
fix: Unrecognized generic type (#560) Signed-off-by: hyh <huangyouhua2@huawei.com> | 2 年前 | |
fix: Inconsistent with Android in repeated vibration mode Co-authored-by: zheng-jun-feng<949815885@qq.com> # message auto-generated for no-merge-commit merge: merge master into master fix: Inconsistent with Android in repeated vibration mode Created-by: zheng-jun-feng Commit-by: zheng-jun-feng Merged-by: huangyouhua Description: <!-- 请在合并之前删除注释代码,以避免将其包含在GIT历史记录中 --> # 描述 <!-- 简要描述PR的目的,例如: 这条PR主要实现metro局域网内远程调试的功能. --> 修复72重复震动模式与安卓不一致的问题 # 变更日志 <!-- 列出可包含在变更日志中的要点的主要变更。 不要列出内部更改。请以下列开头来写每个变更点: - added - fixed - deprecated - removed 如果是一条新增属性的变更,则以[added]开头,例如: - [added] FlatList组件新增inverted属性 --> # 测试步骤 <!-- 如何测试这条PR。例如: 1. 打开Tester工程. 2. 执行npm run start命令. ... --> 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]); // 当重复震动开始第二轮之后的现象: // 72 第三个数振动,第一,二,四个数之和为间隔 // 安卓 第一个数间隔,第二个数震动,第三个数间隔,第四个数震动 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}> {/* 秒表 */} <Text style={styles.timerText}>{时间: ${Math.floor(time / 60)}:${(time % 60).toString().padStart(2, '0')}}</Text> {/* 震动控制 */} <Button title="震动0.4秒" onPress={vibrateOnce} /> <View style={styles.buttonSpacer} /> <Button title="按模式震动" onPress={vibrateWithPattern} /> <View style={styles.buttonSpacer} /> <Button title="重复震动模式" onPress={startVibrationWithPattern} /> <View style={styles.buttonSpacer} /> <Button title="取消震动" 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; `` # 合入前自检 <!-- 请在合入前根据以下条例进行自检 自检完成后在[ ]内填入"x", 例如: - [x] 不涉及非兼容性变更;若涉及,已通过相应评审。 --> - [x] 不涉及非兼容性变更;若涉及,已通过相应评审。 - [x] 不涉及性能或已进行性能测试且无性能劣化。 - [x] 符合对应的编码规范。 - [x] 不涉及文档更新,或已更新了文档。 - [x] 针对可测试性要求,已增加必要的自测用例、合理的日志记录或Trace信息。 - [x] 不存在非法的文件引入,包括图片和代码等 - [] 本PR已经在77分支开启PR或不需要在77分支合入 - 如需合入77分支,PR地址: See merge request: openharmony-sig/ohos_react_native!1069 | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 10 个月前 | ||
| 6 个月前 | ||
| 6 个月前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 8 个月前 | ||
| 8 个月前 | ||
| 8 个月前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 |