You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit edcd60c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/docs-gesture-handler/docs/components/buttons.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ exclusive?: boolean;
43
43
Defines whether pressing this button prevents other buttons exported by Gesture Handler from being pressed. By default set to `true`.
44
44
45
45
<Badgesplatforms={['android']}>
46
-
### rippleColor
46
+
### rippleColor[A]
47
47
</Badges>
48
48
49
49
```ts
@@ -53,7 +53,7 @@ rippleColor?: number | ColorValue | null;
53
53
Defines [color](https://reactnative.dev/docs/colors) of native [ripple](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) animation.
54
54
55
55
<Badgesplatforms={['android']}>
56
-
### rippleRadius
56
+
### rippleRadius[A]
57
57
</Badges>
58
58
59
59
@@ -64,7 +64,7 @@ rippleRadius?: number | null;
64
64
Defines radius of native [ripple](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) animation.
65
65
66
66
<Badgesplatforms={['android']}>
67
-
### borderless
67
+
### borderless[A]
68
68
</Badges>
69
69
70
70
```ts
@@ -74,7 +74,7 @@ borderless?: boolean;
74
74
If set to `false`, [ripple](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) animation will render only within view bounds.
75
75
76
76
<Badgesplatforms={['android']}>
77
-
### foreground
77
+
### foreground[A]
78
78
</Badges>
79
79
80
80
```ts
@@ -84,7 +84,7 @@ foreground?: boolean;
84
84
Defines whether the [ripple](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) animation should be drawn on the foreground of the view.
85
85
86
86
<Badgesplatforms={['android']}>
87
-
### touchSoundDisabled
87
+
### touchSoundDisabled[A]
88
88
</Badges>
89
89
90
90
```ts
@@ -144,7 +144,7 @@ underlayColor?: string;
144
144
Background color that will be dimmed when the button is in an active state.
145
145
146
146
<Badgesplatforms={['ios']}>
147
-
### activeOpacity
147
+
### activeOpacity[I]
148
148
</Badges>
149
149
150
150
```ts
@@ -158,7 +158,7 @@ Opacity applied to the underlay when the button is in an active state.
158
158
This type of button component should be used with simple icon-only or text-only buttons. The interaction will be different depending on platform: on Android a borderless ripple will be rendered (it means that the ripple will animate into a circle that can span outside of the view bounds), whereas on iOS the button will be dimmed (similar to how `TouchableOpacity` works). In addition to the props of [`BaseButton`](#basebutton), it accepts the following:
Copy file name to clipboardExpand all lines: packages/docs-gesture-handler/docs/components/reanimated-drawer-layout.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -229,7 +229,7 @@ export enum DrawerState {
229
229
A function is called when the status of the drawer changes, taking `newState` to represent the drawer's interaction state and `drawerWillShow`, which is `true` when the drawer starts animating towards the open position and `false` otherwise.
230
230
231
231
<Badgesplatforms={['ios', 'web']}>
232
-
### enableTrackpadTwoFingerGesture
232
+
### enableTrackpadTwoFingerGesture[I][W]
233
233
</Badges>
234
234
235
235
```ts
@@ -250,7 +250,7 @@ Either a component rendered in the content view or a function. If `children` is
250
250
<MouseButtonProp />
251
251
252
252
<Badgesplatforms={['web']}>
253
-
### enableContextMenu
253
+
### enableContextMenu[W]
254
254
</Badges>
255
255
256
256
```ts
@@ -260,7 +260,7 @@ enableContextMenu: boolean;
260
260
Specifies whether the context menu should be enabled after clicking on the underlying view with the right mouse button. Default value is set to `false` if [`MouseButton.RIGHT`](#mousebutton-web--android-only) is specified.
Copy file name to clipboardExpand all lines: packages/docs-gesture-handler/docs/components/touchable.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -357,7 +357,7 @@ exclusive?: boolean;
357
357
Defines whether pressing this button prevents other buttons exported by Gesture Handler from being pressed. By default set to `true`.
358
358
359
359
<Badgesplatforms={['android']}>
360
-
### touchSoundDisabled
360
+
### touchSoundDisabled[A]
361
361
</Badges>
362
362
363
363
```ts
@@ -466,7 +466,7 @@ Defines the delay, in milliseconds, after which the [`onLongPress`](#onlongpress
466
466
467
467
468
468
<Badgesplatforms={['android']}>
469
-
### androidRipple
469
+
### androidRipple[A]
470
470
</Badges>
471
471
472
472
<CollapsibleCode
@@ -487,7 +487,7 @@ type PressableAndroidRippleConfig = {
487
487
Configuration for the ripple effect on Android. If not provided, the ripple effect will be disabled. If `{}` is provided, the ripple effect will be enabled with default configuration.
488
488
489
489
<Badgesplatforms={['android', 'ios']}>
490
-
### cancelOnLeave
490
+
### cancelOnLeave[A][I]
491
491
</Badges>
492
492
493
493
```ts
@@ -497,7 +497,7 @@ cancelOnLeave?: boolean;
497
497
Whether the touch should be canceled when the pointer leaves the component. By default set to `true`. On web this prop doesn't have any effect and behaves as if `true` was set.
This parameter allows specifying which `userSelect` property should be applied to the underlying view. Default value is set to `"none"`.
199
199
200
200
<Badgesplatforms={['web']}>
201
-
### touchAction
201
+
### touchAction[W]
202
202
</Badges>
203
203
204
204
```ts
@@ -208,7 +208,7 @@ touchAction: TouchAction;
208
208
This parameter allows specifying which `touchAction` property should be applied to the underlying view. Supports all CSS [touch-action](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/touch-action) values. Default value is set to `"none"`.
Copy file name to clipboardExpand all lines: packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-config.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ testID: string;
68
68
Sets a `testID` property for gesture object, allowing for querying for it in tests.
69
69
70
70
<Badgesplatforms={['ios']}>
71
-
### cancelsTouchesInView
71
+
### cancelsTouchesInView[I]
72
72
</Badges>
73
73
74
74
```ts
@@ -138,7 +138,7 @@ useAnimated: boolean;
138
138
Setting this property to `true` ensures that the [Animated API](/docs/fundamentals/animated-interactions) functions correctly when `useNativeDriver` is set to `false`. The default value is set to `false`.
This parameter allows specifying which cursor should be used when the gesture activates. Supports all [CSS cursor values](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/cursor#keyword) (e.g. `"grab"`, `"zoom-in"`). Default value is set to `"auto"`.
Composes with [`disallowInterruption`](#disallowinterruption). When both are `true`, this handler still cancels discrete gestures (`Tap`, `LongPress`, `Fling`) on activation but allows continuous gestures (`Pan`, `Pinch`, `Rotation`, `Native`, `Manual`, `Hover`) to interrupt it. No-op when `disallowInterruption` is `false`. Defaults to `false`.
0 commit comments