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
[General] Remove onActiveStateChange from Touchable (#4101)
## Description
Removes `onActiveStateChange` from the `Touchable` component. With
`onPressIn` and `onPressOut`, this callback seems redundant and
confusing since the state transitions regarding the button are
inconsistent between platforms.
## Test plan
Static checks
Copy file name to clipboardExpand all lines: packages/docs-gesture-handler/docs/components/touchable.mdx
-8Lines changed: 0 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,14 +285,6 @@ onLongPress?: () => void;
285
285
Triggered when the button gets pressed for at least [`delayLongPress`](#delaylongpress) milliseconds.
286
286
287
287
288
-
### onActiveStateChange
289
-
290
-
```ts
291
-
onActiveStateChange?: (active:boolean) =>void;
292
-
```
293
-
294
-
Triggered when the button transitions between active and inactive states. It passes the current active state as a boolean variable to the method as the first parameter.
0 commit comments