From 37c2d97ddc0802fcbbac101feb00a736d7796272 Mon Sep 17 00:00:00 2001 From: Patrycja Kalinska Date: Tue, 10 Mar 2026 16:01:40 +0100 Subject: [PATCH 1/6] bump t-rex-ui --- .../docs/components/buttons.mdx | 30 +- .../docs/components/pressable.mdx | 34 +- .../components/reanimated-drawer-layout.mdx | 18 +- .../docs/components/reanimated_swipeable.mdx | 6 +- .../fundamentals/animated-interactions.mdx | 2 +- .../docs/fundamentals/callbacks-events.mdx | 2 +- .../docs/fundamentals/gesture-composition.mdx | 2 +- .../docs/fundamentals/gesture-detector.mdx | 15 +- .../fundamentals/reanimated-interactions.mdx | 2 +- .../docs/fundamentals/state-manager.mdx | 2 +- .../gestures/_shared/base-gesture-config.mdx | 10 +- .../_shared/base-gesture-event-data.mdx | 2 +- .../docs/gestures/_shared/mouse-button.mdx | 7 +- .../docs/gestures/use-fling-gesture.mdx | 1 - .../docs/gestures/use-hover-gesture.mdx | 6 +- .../docs/gestures/use-long-press-gesture.mdx | 4 +- .../docs/gestures/use-native-gesture.mdx | 6 +- .../docs/gestures/use-pan-gesture.mdx | 10 +- .../docs/gestures/use-rotation-gesture.mdx | 2 +- .../docs/gestures/use-tap-gesture.mdx | 4 +- .../docs-gesture-handler/docusaurus.config.js | 5 + packages/docs-gesture-handler/package.json | 25 +- .../src/components/HeaderWithBadges/index.tsx | 88 - .../HeaderWithBadges/styles.module.css | 61 - .../docs-gesture-handler/src/css/colors.css | 34 + .../src/theme/Admonition/index.js | 3 - .../src/theme/DocCard/index.js | 3 - .../src/theme/DocItem/Metadata/index.js | 3 - .../src/theme/DocItem/TOC/Mobile/index.js | 3 - .../src/theme/DocSidebarItem/index.js | 3 - .../src/theme/DocSidebarItems/index.js | 3 - .../src/theme/Footer/index.js | 3 - .../src/theme/MDXComponents.js | 3 + .../src/theme/MDXComponents/Details.js | 19 - .../theme/MDXComponents/DetailsStyling.tsx | 100 - .../src/theme/MDXComponents/styles.module.css | 50 - .../src/theme/PaginatorNavLink/index.js | 3 - .../src/theme/SearchPage/index.js | 3 - .../src/theme/TOCCollapsible/index.js | 3 - .../src/theme/TOCItems/Tree.js | 3 - .../docs-gesture-handler/static/llms-full.txt | 5578 +++++++++++++++++ packages/docs-gesture-handler/static/llms.txt | 107 + .../static/raw/components/buttons.md | 178 + .../static/raw/components/pressable.md | 203 + .../components/reanimated-drawer-layout.md | 233 + .../raw/components/reanimated_swipeable.md | 299 + .../static/raw/components/touchables.md | 50 + .../raw/fundamentals/animated-interactions.md | 37 + .../raw/fundamentals/callbacks-events.md | 122 + .../raw/fundamentals/gesture-composition.md | 43 + .../raw/fundamentals/gesture-detector.md | 95 + .../static/raw/fundamentals/installation.md | 154 + .../static/raw/fundamentals/introduction.md | 75 + .../fundamentals/reanimated-interactions.md | 94 + .../static/raw/fundamentals/root-view.md | 41 + .../static/raw/fundamentals/state-manager.md | 55 + .../gestures/_manual_gesture_steps/step1.md | 7 + .../gestures/_manual_gesture_steps/step2.md | 47 + .../gestures/_manual_gesture_steps/step3.md | 55 + .../gestures/_manual_gesture_steps/step4.md | 17 + .../gestures/_manual_gesture_steps/step5.md | 14 + .../gestures/_manual_gesture_steps/step6.md | 18 + .../gestures/_manual_gesture_steps/step7.md | 10 + .../base-continuous-gesture-callbacks.md | 3 + .../_shared/base-continuous-gesture-config.md | 7 + .../_shared/base-gesture-callbacks.md | 47 + .../gestures/_shared/base-gesture-config.md | 118 + .../_shared/base-gesture-event-data.md | 11 + .../raw/gestures/_shared/mouse-button.md | 3 + .../raw/gestures/_shared/shared-value-info.md | 1 + .../static/raw/gestures/use-fling-gesture.md | 65 + .../static/raw/gestures/use-hover-gesture.md | 75 + .../raw/gestures/use-long-press-gesture.md | 67 + .../static/raw/gestures/use-manual-gesture.md | 161 + .../static/raw/gestures/use-native-gesture.md | 47 + .../static/raw/gestures/use-pan-gesture.md | 217 + .../static/raw/gestures/use-pinch-gesture.md | 60 + .../raw/gestures/use-rotation-gesture.md | 55 + .../static/raw/gestures/use-tap-gesture.md | 104 + .../raw/guides/quickstart/_steps/step1.md | 23 + .../raw/guides/quickstart/_steps/step2.md | 25 + .../raw/guides/quickstart/_steps/step3.md | 9 + .../raw/guides/quickstart/_steps/step4.md | 22 + .../raw/guides/quickstart/_steps/step5.md | 11 + .../static/raw/guides/quickstart/index.md | 78 + .../static/raw/guides/swipe-and-scroll.md | 7 + .../static/raw/guides/testing.md | 114 + .../static/raw/guides/troubleshooting.md | 73 + .../static/raw/guides/upgrading-to-3.md | 152 + .../base-continuous-gesture-callbacks.md | 9 + .../_shared/base-continuous-gesture-config.md | 5 + .../_shared/base-gesture-callbacks.md | 33 + .../_shared/base-gesture-config.md | 68 + .../_shared/base-gesture-event-data.md | 19 + .../_shared/gesture-detector-functional1.md | 19 + .../raw/legacy-gestures/_shared/v2-info.md | 3 + .../raw/legacy-gestures/composed-gestures.md | 21 + .../raw/legacy-gestures/fling-gesture.md | 110 + .../legacy-gestures/force-touch-gesture.md | 55 + .../legacy-gestures/gesture-composition.md | 400 ++ .../raw/legacy-gestures/gesture-detector.md | 72 + .../static/raw/legacy-gestures/gesture.md | 90 + .../raw/legacy-gestures/hover-gesture.md | 76 + .../raw/legacy-gestures/long-press-gesture.md | 88 + .../raw/legacy-gestures/manual-gesture.md | 24 + .../raw/legacy-gestures/native-gesture.md | 81 + .../static/raw/legacy-gestures/pan-gesture.md | 197 + .../raw/legacy-gestures/pinch-gesture.md | 83 + .../raw/legacy-gestures/rotation-gesture.md | 80 + .../raw/legacy-gestures/state-manager.md | 20 + .../static/raw/legacy-gestures/tap-gesture.md | 117 + .../raw/legacy-gestures/touch-events.md | 43 + .../raw/under-the-hood/how-does-it-work.md | 16 + .../static/raw/under-the-hood/state.md | 13 + packages/docs-gesture-handler/yarn.lock | 4926 ++++++++------- 115 files changed, 13400 insertions(+), 2938 deletions(-) delete mode 100644 packages/docs-gesture-handler/src/components/HeaderWithBadges/index.tsx delete mode 100644 packages/docs-gesture-handler/src/components/HeaderWithBadges/styles.module.css delete mode 100644 packages/docs-gesture-handler/src/theme/Admonition/index.js delete mode 100644 packages/docs-gesture-handler/src/theme/DocCard/index.js delete mode 100644 packages/docs-gesture-handler/src/theme/DocItem/Metadata/index.js delete mode 100644 packages/docs-gesture-handler/src/theme/DocItem/TOC/Mobile/index.js delete mode 100644 packages/docs-gesture-handler/src/theme/DocSidebarItem/index.js delete mode 100644 packages/docs-gesture-handler/src/theme/DocSidebarItems/index.js delete mode 100644 packages/docs-gesture-handler/src/theme/Footer/index.js delete mode 100644 packages/docs-gesture-handler/src/theme/MDXComponents/Details.js delete mode 100644 packages/docs-gesture-handler/src/theme/MDXComponents/DetailsStyling.tsx delete mode 100644 packages/docs-gesture-handler/src/theme/MDXComponents/styles.module.css delete mode 100644 packages/docs-gesture-handler/src/theme/PaginatorNavLink/index.js delete mode 100644 packages/docs-gesture-handler/src/theme/SearchPage/index.js delete mode 100644 packages/docs-gesture-handler/src/theme/TOCCollapsible/index.js delete mode 100644 packages/docs-gesture-handler/src/theme/TOCItems/Tree.js create mode 100644 packages/docs-gesture-handler/static/llms-full.txt create mode 100644 packages/docs-gesture-handler/static/llms.txt create mode 100644 packages/docs-gesture-handler/static/raw/components/buttons.md create mode 100644 packages/docs-gesture-handler/static/raw/components/pressable.md create mode 100644 packages/docs-gesture-handler/static/raw/components/reanimated-drawer-layout.md create mode 100644 packages/docs-gesture-handler/static/raw/components/reanimated_swipeable.md create mode 100644 packages/docs-gesture-handler/static/raw/components/touchables.md create mode 100644 packages/docs-gesture-handler/static/raw/fundamentals/animated-interactions.md create mode 100644 packages/docs-gesture-handler/static/raw/fundamentals/callbacks-events.md create mode 100644 packages/docs-gesture-handler/static/raw/fundamentals/gesture-composition.md create mode 100644 packages/docs-gesture-handler/static/raw/fundamentals/gesture-detector.md create mode 100644 packages/docs-gesture-handler/static/raw/fundamentals/installation.md create mode 100644 packages/docs-gesture-handler/static/raw/fundamentals/introduction.md create mode 100644 packages/docs-gesture-handler/static/raw/fundamentals/reanimated-interactions.md create mode 100644 packages/docs-gesture-handler/static/raw/fundamentals/root-view.md create mode 100644 packages/docs-gesture-handler/static/raw/fundamentals/state-manager.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step1.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step2.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step3.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step4.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step5.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step6.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_manual_gesture_steps/step7.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_shared/base-continuous-gesture-callbacks.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_shared/base-continuous-gesture-config.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_shared/base-gesture-callbacks.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_shared/base-gesture-config.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_shared/base-gesture-event-data.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_shared/mouse-button.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/_shared/shared-value-info.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/use-fling-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/use-hover-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/use-long-press-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/use-manual-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/use-native-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/use-pan-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/use-pinch-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/use-rotation-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/gestures/use-tap-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/guides/quickstart/_steps/step1.md create mode 100644 packages/docs-gesture-handler/static/raw/guides/quickstart/_steps/step2.md create mode 100644 packages/docs-gesture-handler/static/raw/guides/quickstart/_steps/step3.md create mode 100644 packages/docs-gesture-handler/static/raw/guides/quickstart/_steps/step4.md create mode 100644 packages/docs-gesture-handler/static/raw/guides/quickstart/_steps/step5.md create mode 100644 packages/docs-gesture-handler/static/raw/guides/quickstart/index.md create mode 100644 packages/docs-gesture-handler/static/raw/guides/swipe-and-scroll.md create mode 100644 packages/docs-gesture-handler/static/raw/guides/testing.md create mode 100644 packages/docs-gesture-handler/static/raw/guides/troubleshooting.md create mode 100644 packages/docs-gesture-handler/static/raw/guides/upgrading-to-3.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/base-continuous-gesture-callbacks.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/base-continuous-gesture-config.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/base-gesture-callbacks.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/base-gesture-config.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/base-gesture-event-data.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/gesture-detector-functional1.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/_shared/v2-info.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/composed-gestures.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/fling-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/force-touch-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/gesture-composition.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/gesture-detector.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/hover-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/long-press-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/manual-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/native-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/pan-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/pinch-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/rotation-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/state-manager.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/tap-gesture.md create mode 100644 packages/docs-gesture-handler/static/raw/legacy-gestures/touch-events.md create mode 100644 packages/docs-gesture-handler/static/raw/under-the-hood/how-does-it-work.md create mode 100644 packages/docs-gesture-handler/static/raw/under-the-hood/state.md diff --git a/packages/docs-gesture-handler/docs/components/buttons.mdx b/packages/docs-gesture-handler/docs/components/buttons.mdx index 041d387fbe..c515d5a70f 100644 --- a/packages/docs-gesture-handler/docs/components/buttons.mdx +++ b/packages/docs-gesture-handler/docs/components/buttons.mdx @@ -7,8 +7,6 @@ sidebar_label: Buttons import useBaseUrl from '@docusaurus/useBaseUrl'; import GifGallery from '@site/components/GifGallery'; -import HeaderWithBadges from '@site/src/components/HeaderWithBadges'; - @@ -39,9 +37,9 @@ exclusive?: boolean; Defines if more than one button could be pressed simultaneously. By default set to `true`. - + ### rippleColor - + ```ts rippleColor?: number | ColorValue | null; @@ -49,9 +47,9 @@ rippleColor?: number | ColorValue | null; Defines [color](https://reactnative.dev/docs/colors) of native [ripple](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) animation. - + ### rippleRadius - + ```ts @@ -60,9 +58,9 @@ rippleRadius?: number | null; Defines radius of native [ripple](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) animation. - + ### borderless - + ```ts borderless?: boolean; @@ -70,9 +68,9 @@ borderless?: boolean; If set to `false`, [ripple](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) animation will render only within view bounds. - + ### foreground - + ```ts foreground?: boolean; @@ -80,9 +78,9 @@ foreground?: boolean; Defines whether the [ripple](https://developer.android.com/reference/android/graphics/drawable/RippleDrawable) animation should be drawn on the foreground of the view. - + ### touchSoundDisabled - + ```ts touchSoundDisabled?: boolean; @@ -140,9 +138,9 @@ underlayColor?: string; Background color that will be dimmed when button is in active state. - + ### activeOpacity - + ```ts activeOpacity?: number; @@ -154,9 +152,9 @@ Opacity applied to the underlay when button is in active state. 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: - + ### activeOpacity - + ```ts activeOpacity?: number; diff --git a/packages/docs-gesture-handler/docs/components/pressable.mdx b/packages/docs-gesture-handler/docs/components/pressable.mdx index 5c89da1876..d42a229732 100644 --- a/packages/docs-gesture-handler/docs/components/pressable.mdx +++ b/packages/docs-gesture-handler/docs/components/pressable.mdx @@ -7,8 +7,6 @@ sidebar_label: Pressable import useBaseUrl from '@docusaurus/useBaseUrl'; import GifGallery from '@site/components/GifGallery'; -import HeaderWithBadges from '@site/src/components/HeaderWithBadges'; - :::info This component is a drop-in replacement for the `Pressable` component. ::: @@ -89,9 +87,9 @@ cancelable?: null | boolean; Whether a press gesture can be interrupted by a parent gesture such as a scroll event. Defaults to `true`. - + ### onHoverIn - + ```ts onHoverIn?: null | ((event: PressableEvent) => void); @@ -99,9 +97,9 @@ onHoverIn?: null | ((event: PressableEvent) => void); Called when pointer is hovering over the element. - + ### onHoverOut - + ```ts onHoverOut?: null | ((event: PressableEvent) => void); @@ -109,9 +107,9 @@ onHoverOut?: null | ((event: PressableEvent) => void); Called when pointer stops hovering over the element. - + ### delayHoverIn - + ```ts delayHoverIn?: number | null; @@ -119,9 +117,9 @@ delayHoverIn?: number | null; Duration to wait after hover in before calling `onHoverIn`. - + ### delayHoverOut - + ```ts delayHoverOut?: number | null; @@ -145,9 +143,9 @@ disabled?: null | boolean; Whether the `Pressable` behavior is disabled. - + ### hitSlop - + ```ts hitSlop?: null | Insets | number; @@ -157,9 +155,9 @@ Additional distance outside of the view in which a press is detected and [`onPre The `Insets` type is essentially the same as [`Rect`](https://reactnative.dev/docs/rect). - + ### pressRetentionOffset - + ```ts pressRetentionOffset?: null | Insets | number; @@ -170,9 +168,9 @@ press before [`onPressOut`](#onpressout) is triggered. The `Insets` type is essentially the same as [`Rect`](https://reactnative.dev/docs/rect). - + ### android_disableSound - + ```ts android_disableSound?: null | boolean; @@ -180,9 +178,9 @@ android_disableSound?: null | boolean; If `true`, doesn't play system sound on touch. - + ### android_ripple - + ```ts android_ripple?: null | PressableAndroidRippleConfig; diff --git a/packages/docs-gesture-handler/docs/components/reanimated-drawer-layout.mdx b/packages/docs-gesture-handler/docs/components/reanimated-drawer-layout.mdx index 378d47b1a6..ba1d318b5e 100644 --- a/packages/docs-gesture-handler/docs/components/reanimated-drawer-layout.mdx +++ b/packages/docs-gesture-handler/docs/components/reanimated-drawer-layout.mdx @@ -6,8 +6,6 @@ sidebar_label: Reanimated Drawer Layout import useBaseUrl from '@docusaurus/useBaseUrl'; -import HeaderWithBadges from '@site/src/components/HeaderWithBadges'; - import MouseButtonProp from '../gestures/\_shared/mouse-button.mdx'; :::info @@ -221,9 +219,9 @@ export enum DrawerState { 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. - + ### enableTrackpadTwoFingerGesture - + ```ts enableTrackpadTwoFingerGesture?: boolean; @@ -242,9 +240,9 @@ Either a component rendered in the content view or a function. If `children` is - + ### enableContextMenu - + ```ts enableContextMenu: boolean; @@ -252,9 +250,9 @@ enableContextMenu: boolean; Specifies whether context menu should be enabled after clicking on underlying view with right mouse button. Default value is set to `false` if [`MouseButton.RIGHT`](#mousebutton-web--android-only) is specified. - + ### userSelect - + ```ts userSelect: 'none' | 'auto' | 'text'; @@ -262,9 +260,9 @@ userSelect: 'none' | 'auto' | 'text'; This parameter allows to specify which `userSelect` property should be applied to underlying view. Default value is set to `"none"`. - + ### activeCursor - + ```ts activeCursor: ActiveCursor; diff --git a/packages/docs-gesture-handler/docs/components/reanimated_swipeable.mdx b/packages/docs-gesture-handler/docs/components/reanimated_swipeable.mdx index 6fdc72ef21..84e17f6096 100644 --- a/packages/docs-gesture-handler/docs/components/reanimated_swipeable.mdx +++ b/packages/docs-gesture-handler/docs/components/reanimated_swipeable.mdx @@ -7,8 +7,6 @@ sidebar_label: Reanimated Swipeable import useBaseUrl from '@docusaurus/useBaseUrl'; import GifGallery from '@site/components/GifGallery' -import HeaderWithBadges from '@site/src/components/HeaderWithBadges'; - :::info This component is a drop-in replacement for the `Swipeable` component, rewritten using [Reanimated](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started). ::: @@ -242,9 +240,9 @@ blocksExternalGesture?: AnyGesture | AnyGesture[]; Gestures that `Swipeable` will prevent from activating (see [gesture composition section](/docs/fundamentals/gesture-composition#simultaneouswith)). - + ### enableTrackpadTwoFingerGesture - + ```ts enableTrackpadTwoFingerGesture?: boolean; diff --git a/packages/docs-gesture-handler/docs/fundamentals/animated-interactions.mdx b/packages/docs-gesture-handler/docs/fundamentals/animated-interactions.mdx index 0f6cc5d060..634b3ed9ef 100644 --- a/packages/docs-gesture-handler/docs/fundamentals/animated-interactions.mdx +++ b/packages/docs-gesture-handler/docs/fundamentals/animated-interactions.mdx @@ -5,7 +5,7 @@ sidebar_label: Integration with Animated sidebar_position: 9 --- -import CollapsibleCode from '@site/src/components/CollapsibleCode'; + Using hook API allows for smooth integration with the [Animated API](https://reactnative.dev/docs/animated) by allowing for passing an `Animated.event` as the argument to the [`onUpdate`](/docs/fundamentals/callbacks-events#onupdate) callback. The event mapping of `Animated.event` depends on the [`useNativeDriver`](https://reactnative.dev/docs/animated#using-the-native-driver) property. diff --git a/packages/docs-gesture-handler/docs/fundamentals/callbacks-events.mdx b/packages/docs-gesture-handler/docs/fundamentals/callbacks-events.mdx index 4ac1d88dd1..a0420e15f2 100644 --- a/packages/docs-gesture-handler/docs/fundamentals/callbacks-events.mdx +++ b/packages/docs-gesture-handler/docs/fundamentals/callbacks-events.mdx @@ -6,7 +6,7 @@ sidebar_position: 6 --- import { GestureEventFlowChart, TouchEventFlowChart } from '@site/src/examples/CallbacksFlowCharts' -import CollapsibleCode from '@site/src/components/CollapsibleCode'; + At any given time, each handler instance has an assigned [state](/docs/under-the-hood/state) that can change when new touch events occur or can be forced to change by the touch system under certain circumstances. You can hook into state transitions using specific [gesture callbacks](#callbacks). diff --git a/packages/docs-gesture-handler/docs/fundamentals/gesture-composition.mdx b/packages/docs-gesture-handler/docs/fundamentals/gesture-composition.mdx index 156407c8af..f5814389b1 100644 --- a/packages/docs-gesture-handler/docs/fundamentals/gesture-composition.mdx +++ b/packages/docs-gesture-handler/docs/fundamentals/gesture-composition.mdx @@ -5,7 +5,7 @@ sidebar_label: Gesture composition & interactions sidebar_position: 5 --- -import CollapsibleCode from '@site/src/components/CollapsibleCode'; + import Competing from '!!raw-loader!.//\_examples/hooks/Competing'; import Simultaneous from '!!raw-loader!.//\_examples/hooks/Simultaneous'; diff --git a/packages/docs-gesture-handler/docs/fundamentals/gesture-detector.mdx b/packages/docs-gesture-handler/docs/fundamentals/gesture-detector.mdx index 448855177d..98b860c75f 100644 --- a/packages/docs-gesture-handler/docs/fundamentals/gesture-detector.mdx +++ b/packages/docs-gesture-handler/docs/fundamentals/gesture-detector.mdx @@ -5,8 +5,7 @@ sidebar_label: Gesture detectors sidebar_position: 4 --- -import CollapsibleCode from '@site/src/components/CollapsibleCode'; -import HeaderWithBadges from '@site/src/components/HeaderWithBadges'; + ## Gesture Detector @@ -190,9 +189,9 @@ gesture: SingleGesture | ComposedGesture; A gesture object containing the configuration and callbacks. Can be any of the base gestures or any [`ComposedGesture`](/docs/fundamentals/gesture-composition). - + ### userSelect - + ```ts userSelect: 'none' | 'auto' | 'text'; @@ -200,9 +199,9 @@ userSelect: 'none' | 'auto' | 'text'; This parameter allows to specify which `userSelect` property should be applied to underlying view. Default value is set to `"none"`. - + ### touchAction - + ```ts touchAction: TouchAction; @@ -210,9 +209,9 @@ touchAction: TouchAction; This parameter allows to specify which `touchAction` property should be applied to 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"`. - + ### enableContextMenu - + ```ts enableContextMenu: boolean; diff --git a/packages/docs-gesture-handler/docs/fundamentals/reanimated-interactions.mdx b/packages/docs-gesture-handler/docs/fundamentals/reanimated-interactions.mdx index ff74d76c94..34b9ac962f 100644 --- a/packages/docs-gesture-handler/docs/fundamentals/reanimated-interactions.mdx +++ b/packages/docs-gesture-handler/docs/fundamentals/reanimated-interactions.mdx @@ -5,7 +5,7 @@ sidebar_label: Integration with Reanimated sidebar_position: 8 --- -import CollapsibleCode from '@site/src/components/CollapsibleCode'; + [`GestureDetector`](/docs/fundamentals/gesture-detectors) will decide whether to use [Reanimated](https://docs.swmansion.com/react-native-reanimated/) to process provided gestures based on their configuration. If any of the callbacks is a [worklet](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary/#worklet) and Reanimated is not explicitly [turned off](#disabling-reanimated), tools provided by the Reanimated will be utilized, bringing the ability to handle gestures synchronously on the main thread. diff --git a/packages/docs-gesture-handler/docs/fundamentals/state-manager.mdx b/packages/docs-gesture-handler/docs/fundamentals/state-manager.mdx index ab685ff241..d158359054 100644 --- a/packages/docs-gesture-handler/docs/fundamentals/state-manager.mdx +++ b/packages/docs-gesture-handler/docs/fundamentals/state-manager.mdx @@ -5,7 +5,7 @@ sidebar_label: State manager sidebar_position: 7 --- -import CollapsibleCode from '@site/src/components/CollapsibleCode'; + RNGH3 allows to manually control [gestures lifecycle](/docs/under-the-hood/state) by using [`GestureStateManager`](#gesturestatemanager). diff --git a/packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-config.mdx b/packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-config.mdx index ae94d348e0..95ebdbca85 100644 --- a/packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-config.mdx +++ b/packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-config.mdx @@ -1,6 +1,4 @@ -import CollapsibleCode from '@site/src/components/CollapsibleCode'; -import HeaderWithBadges from '@site/src/components/HeaderWithBadges'; ### enabled @@ -69,9 +67,9 @@ testID: string; Sets a `testID` property for gesture object, allowing for querying for it in tests. - + ### cancelsTouchesInView - + ```ts cancelsTouchesInView: boolean | SharedValue; @@ -139,9 +137,9 @@ useAnimated: boolean; Setting this property is set 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`. - + ### activeCursor - + ```ts activeCursor: ActiveCursor | SharedValue; diff --git a/packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-event-data.mdx b/packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-event-data.mdx index 8ed3c77583..b5ed6493b1 100644 --- a/packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-event-data.mdx +++ b/packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-event-data.mdx @@ -1,4 +1,4 @@ -import CollapsibleCode from '@site/src/components/CollapsibleCode'; + ### numberOfPointers diff --git a/packages/docs-gesture-handler/docs/gestures/_shared/mouse-button.mdx b/packages/docs-gesture-handler/docs/gestures/_shared/mouse-button.mdx index 54d3455c86..26bac57f4a 100644 --- a/packages/docs-gesture-handler/docs/gestures/_shared/mouse-button.mdx +++ b/packages/docs-gesture-handler/docs/gestures/_shared/mouse-button.mdx @@ -1,9 +1,8 @@ -import CollapsibleCode from '@site/src/components/CollapsibleCode'; -import HeaderWithBadges from '@site/src/components/HeaderWithBadges'; - + + ### mouseButton - +