diff --git a/app/settings/privacy.tsx b/app/settings/privacy.tsx index 6c5e7a6..0e49b2f 100644 --- a/app/settings/privacy.tsx +++ b/app/settings/privacy.tsx @@ -65,19 +65,29 @@ function SettingRow({ const titleColor = isDanger ? colors.dangerText : colors.textPrimary; const handlePress = () => { - if (item.route) { - router.push(item.route); - return; - } + if (item.route) router.push(item.route); }; + const rowBody = ( + + {item.title} + {item.description ? {item.description} : null} + + ); + + // 开关型条目:带 route 的(如「勿扰模式」「真实姓名可见性」)点击左侧文字区进详情页, + // 右侧 Switch 保持独立可切换,两者互不干扰。 if (item.type === 'switch') { return ( - - {item.title} - {item.description ? {item.description} : null} - + {item.route ? ( + + {rowBody} + + + ) : ( + rowBody + )} onToggle?.(item.id, next)} @@ -270,6 +280,11 @@ const styles = StyleSheet.create({ flex: 1, marginRight: 12, }, + rowTapArea: { + flex: 1, + flexDirection: 'row', + alignItems: 'center', + }, rowTitle: { fontSize: 15, fontWeight: '600',