Skip to content

Commit 267770c

Browse files
committed
pressable.md 翻译细微调整
1 parent 53c6718 commit 267770c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cndocs/pressable.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: pressable
33
title: Pressable
44
---
55

6-
触摸控制是一个核心组件包装器,能够检测定义的任意子组件的不同阶段的按压交互情况。
6+
按压控制是一个核心组件包装器,能够检测定义的任意子组件的不同阶段的按压交互情况。
77

88
```jsx
99
<Pressable onPress={onPressFunction}>
@@ -25,11 +25,11 @@ title: Pressable
2525
2626
<img src="https://cdn.jsdelivr.net/gh/reactnativecn/react-native-website@gh-pages/docs/assets/d_pressable_pressing.svg" width="1000" alt="Diagram of the onPress events in sequence." />
2727
28-
手指的精准度终究不是很精确,人们经常会不小心按错了或者错过了触发区域。为了帮助解决这个问题, `Pressable` 提供了一个可选项 `HitRect` ,可以用来定义相对于包裹元素的有效触发距离。在 `HitRect` 内的任何地方都可以触发触摸动作
28+
手指的精准度终究不是很精确,人们经常会不小心按错了或者错过了触发区域。为了帮助解决这个问题, `Pressable` 提供了一个可选项 `HitRect` ,可以用来定义相对于包裹元素的有效触发距离。在 `HitRect` 内的任何地方都可以触发按压动作
2929
3030
`PressRect` 在保持激活状态的同时,允许用户按压时在元素及设定的范围内滑动,使触控更加优雅。试想一下滑动着缓慢离开按下的按钮。
3131
32-
> 触控区域不会超出绑定的父级view,在触摸点击到两层重叠view时,Z轴的sibling view总是具有最高优先权。
32+
> 触控区域不会超出绑定的父级view,在按压点击到两层重叠view时,Z轴的sibling view总是具有最高优先权。
3333
3434
<figure>
3535
<img src="https://cdn.jsdelivr.net/gh/reactnativecn/react-native-website@gh-pages/docs/assets/d_pressable_anatomy.svg" width="1000" alt="Diagram of HitRect and PressRect and how they work." />
@@ -139,15 +139,15 @@ Either children or a function that receives a boolean reflecting whether the com
139139
140140
### `disabled`
141141
142-
是否禁用触摸行为
142+
是否禁用按压行为
143143
144144
| Type | Required | Default |
145145
| ------- | -------- | ------- |
146146
| boolean | No | `false` |
147147
148148
### `hitSlop`
149149
150-
设置元素能够检测到触摸动作的额外距离
150+
设置元素能够检测到按压动作的额外距离
151151
152152
| Type | Required |
153153
| ---------------------- | -------- |

0 commit comments

Comments
 (0)