Description
https://posthog.com/docs/libraries/react-native#autocapture
Right now scrolls and swipes are considered touch, we can probably check if it's a scroll, a swipe, or else.
It's likely possible via heuristics or event metadata, such as the MotionEvent.ACTION_UP and MotionEvent.ACTION_DOWN on Android.
More ideas here https://developer.android.com/develop/ui/views/touch-and-input/gestures/detector
For RN specifically:
https://github.com/PostHog/posthog-js-lite/blob/ae60ef46be7eaa3560ca1657f504c6498a5499dc/posthog-react-native/src/PostHogProvider.tsx#L80-L92
This has to implement something similar.
This applies to:
Description
https://posthog.com/docs/libraries/react-native#autocapture
Right now scrolls and swipes are considered
touch, we can probably check if it's a scroll, a swipe, or else.It's likely possible via heuristics or event metadata, such as the
MotionEvent.ACTION_UPandMotionEvent.ACTION_DOWNon Android.More ideas here https://developer.android.com/develop/ui/views/touch-and-input/gestures/detector
For RN specifically:
https://github.com/PostHog/posthog-js-lite/blob/ae60ef46be7eaa3560ca1657f504c6498a5499dc/posthog-react-native/src/PostHogProvider.tsx#L80-L92
This has to implement something similar.
This applies to: