react-native-gesture-handler 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +6 -5
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/swmansion/gesturehandler/core/FlingGestureHandler.kt +1 -1
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt +24 -31
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt +30 -2
- package/android/src/main/java/com/swmansion/gesturehandler/core/LongPressGestureHandler.kt +4 -3
- package/android/src/main/java/com/swmansion/gesturehandler/core/PanGestureHandler.kt +1 -1
- package/android/src/main/java/com/swmansion/gesturehandler/core/TapGestureHandler.kt +1 -1
- package/android/src/main/java/com/swmansion/gesturehandler/react/Extensions.kt +3 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt +8 -6
- package/apple/RNGestureHandlerDetector.mm +6 -6
- package/apple/RNGestureHandlerManager.h +5 -0
- package/apple/RNGestureHandlerManager.mm +9 -0
- package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js +8 -2
- package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +1 -1
- package/lib/module/v3/hooks/utils/propsWhiteList.js +6 -5
- package/lib/module/v3/hooks/utils/propsWhiteList.js.map +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/propsWhiteList.d.ts.map +1 -1
- package/package.json +1 -1
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerDetectorShadowNode.cpp +19 -0
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerDetectorShadowNode.h +1 -0
- package/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx +8 -2
- package/src/v3/hooks/utils/propsWhiteList.ts +6 -5
package/android/build.gradle
CHANGED
|
@@ -2,17 +2,18 @@ import groovy.json.JsonSlurper
|
|
|
2
2
|
import com.android.build.gradle.tasks.ExternalNativeBuildJsonTask
|
|
3
3
|
|
|
4
4
|
buildscript {
|
|
5
|
-
def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['RNGH_kotlinVersion']
|
|
6
|
-
|
|
7
5
|
repositories {
|
|
8
6
|
mavenCentral()
|
|
9
7
|
google()
|
|
10
8
|
}
|
|
11
9
|
|
|
12
10
|
dependencies {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
if (project == rootProject) {
|
|
12
|
+
def kotlin_version = project.properties['RNGH_kotlinVersion']
|
|
13
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
|
|
14
|
+
classpath("com.android.tools.build:gradle:8.10.1")
|
|
15
|
+
classpath("com.diffplug.spotless:spotless-plugin-gradle:7.0.4")
|
|
16
|
+
}
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -16,4 +16,4 @@ org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemor
|
|
|
16
16
|
# This option should only be used with decoupled projects. More details, visit
|
|
17
17
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
18
18
|
# org.gradle.parallel=true
|
|
19
|
-
RNGH_kotlinVersion=2.0
|
|
19
|
+
RNGH_kotlinVersion=2.2.0
|
|
@@ -4,7 +4,6 @@ import android.app.Activity
|
|
|
4
4
|
import android.content.Context
|
|
5
5
|
import android.content.ContextWrapper
|
|
6
6
|
import android.graphics.PointF
|
|
7
|
-
import android.os.Build
|
|
8
7
|
import android.view.MotionEvent
|
|
9
8
|
import android.view.MotionEvent.PointerCoords
|
|
10
9
|
import android.view.MotionEvent.PointerProperties
|
|
@@ -823,44 +822,38 @@ open class GestureHandler {
|
|
|
823
822
|
return clickedButton and mouseButton != 0
|
|
824
823
|
}
|
|
825
824
|
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
825
|
+
// Decides whether the gesture should ignore this event. While using a mouse we receive both the
|
|
826
|
+
// touch-compatible stream (ACTION_DOWN/UP/...) and the BUTTON_* events, so we act on only the
|
|
827
|
+
// latter, and we drop events coming from a button other than the configured `mouseButton`.
|
|
828
|
+
// Non-mouse input is never skipped here.
|
|
829
|
+
protected fun shouldSkipEvent(sourceEvent: MotionEvent): Boolean {
|
|
830
|
+
if (sourceEvent.getToolType(0) != MotionEvent.TOOL_TYPE_MOUSE) {
|
|
831
|
+
return false
|
|
832
|
+
}
|
|
829
833
|
|
|
830
834
|
with(sourceEvent) {
|
|
831
|
-
//
|
|
832
|
-
if (
|
|
833
|
-
|
|
835
|
+
// While using mouse, we want to ignore default events for touch.
|
|
836
|
+
if (actionMasked == MotionEvent.ACTION_DOWN ||
|
|
837
|
+
actionMasked == MotionEvent.ACTION_UP ||
|
|
838
|
+
actionMasked == MotionEvent.ACTION_POINTER_UP ||
|
|
839
|
+
actionMasked == MotionEvent.ACTION_POINTER_DOWN
|
|
834
840
|
) {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
action == MotionEvent.ACTION_UP ||
|
|
838
|
-
action == MotionEvent.ACTION_POINTER_UP ||
|
|
839
|
-
action == MotionEvent.ACTION_POINTER_DOWN
|
|
840
|
-
) {
|
|
841
|
-
return@shouldActivateWithMouse false
|
|
842
|
-
}
|
|
841
|
+
return@shouldSkipEvent true
|
|
842
|
+
}
|
|
843
843
|
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
844
|
+
// Skip events from a button other than the configured one. For BUTTON_* events the clicked
|
|
845
|
+
// button is read from `actionButton`.
|
|
846
|
+
if (actionMasked != MotionEvent.ACTION_MOVE && !isButtonInConfig(actionButton)) {
|
|
847
|
+
return@shouldSkipEvent true
|
|
848
|
+
}
|
|
848
849
|
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
}
|
|
853
|
-
} else if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
|
|
854
|
-
// We do not fully support mouse below API 23, so we will ignore BUTTON events.
|
|
855
|
-
if (action == MotionEvent.ACTION_BUTTON_PRESS ||
|
|
856
|
-
action == MotionEvent.ACTION_BUTTON_RELEASE
|
|
857
|
-
) {
|
|
858
|
-
return@shouldActivateWithMouse false
|
|
859
|
-
}
|
|
850
|
+
// For ACTION_MOVE the pressed button is read from `buttonState`.
|
|
851
|
+
if (actionMasked == MotionEvent.ACTION_MOVE && !isButtonInConfig(buttonState)) {
|
|
852
|
+
return@shouldSkipEvent true
|
|
860
853
|
}
|
|
861
854
|
}
|
|
862
855
|
|
|
863
|
-
return
|
|
856
|
+
return false
|
|
864
857
|
}
|
|
865
858
|
|
|
866
859
|
/**
|
package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt
CHANGED
|
@@ -546,13 +546,33 @@ class GestureHandlerOrchestrator(
|
|
|
546
546
|
coords: FloatArray,
|
|
547
547
|
pointerId: Int,
|
|
548
548
|
event: MotionEvent,
|
|
549
|
+
useChildBounds: Boolean = false,
|
|
549
550
|
): Boolean {
|
|
551
|
+
var boundsView = view
|
|
552
|
+
var boundsX = coords[0]
|
|
553
|
+
var boundsY = coords[1]
|
|
554
|
+
|
|
555
|
+
// When `useChildBounds` is set, handler bounds are checked in the coordinate space of the view's
|
|
556
|
+
// single child instead of against the view itself. The caller only sets this for a native detector
|
|
557
|
+
// with exactly one child, so its interactive area follows the child's transforms (e.g. `translateX`)
|
|
558
|
+
// rather than the detector's transform-agnostic frame. For an identity transform the child fills the
|
|
559
|
+
// detector, so this matches the detector's own frame and `hitSlop` expansion (#4049) keeps working;
|
|
560
|
+
// for a translated child the area follows the content.
|
|
561
|
+
if (useChildBounds) {
|
|
562
|
+
val child = (view as RNGestureHandlerDetectorView).getChildAt(0)
|
|
563
|
+
val childPoint = tempPoint
|
|
564
|
+
transformPointToChildViewCoords(coords[0], coords[1], view, child, childPoint)
|
|
565
|
+
boundsView = child
|
|
566
|
+
boundsX = childPoint.x
|
|
567
|
+
boundsY = childPoint.y
|
|
568
|
+
}
|
|
569
|
+
|
|
550
570
|
var found = false
|
|
551
571
|
handlerRegistry.getHandlersForView(view)?.let {
|
|
552
572
|
synchronized(it) {
|
|
553
573
|
for (handler in it) {
|
|
554
574
|
// skip disabled and out-of-bounds handlers
|
|
555
|
-
if (!handler.isEnabled || !handler.isWithinBounds(
|
|
575
|
+
if (!handler.isEnabled || !handler.isWithinBounds(boundsView, boundsX, boundsY)) {
|
|
556
576
|
continue
|
|
557
577
|
}
|
|
558
578
|
|
|
@@ -690,8 +710,16 @@ class GestureHandlerOrchestrator(
|
|
|
690
710
|
is ViewGroup -> {
|
|
691
711
|
extractGestureHandlers(view, coords, pointerId, event).also { found ->
|
|
692
712
|
// A child view is handling touch, also extract handlers attached to this view
|
|
693
|
-
if (found
|
|
713
|
+
if (found) {
|
|
694
714
|
recordViewHandlersForPointer(view, coords, pointerId, event)
|
|
715
|
+
} else if (view is RNGestureHandlerDetectorView) {
|
|
716
|
+
// No child consumed the touch, but we still record the detector's own handlers so
|
|
717
|
+
// that `hitSlop` expansion keeps working. The detector's frame ignores
|
|
718
|
+
// child transforms, so for a single-child detector we check bounds in the child's
|
|
719
|
+
// transform-aware coordinate space - otherwise the detector would steal presses over
|
|
720
|
+
// areas its content has been moved away from.
|
|
721
|
+
val useChildBounds = view.childCount == 1
|
|
722
|
+
recordViewHandlersForPointer(view, coords, pointerId, event, useChildBounds)
|
|
695
723
|
}
|
|
696
724
|
}
|
|
697
725
|
}
|
|
@@ -71,7 +71,7 @@ class LongPressGestureHandler(context: Context) : GestureHandler() {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
override fun onHandle(event: MotionEvent, sourceEvent: MotionEvent) {
|
|
74
|
-
if (
|
|
74
|
+
if (shouldSkipEvent(sourceEvent)) {
|
|
75
75
|
return
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -108,7 +108,8 @@ class LongPressGestureHandler(context: Context) : GestureHandler() {
|
|
|
108
108
|
currentPointers == numberOfPointersRequired &&
|
|
109
109
|
(
|
|
110
110
|
sourceEvent.actionMasked == MotionEvent.ACTION_DOWN ||
|
|
111
|
-
sourceEvent.actionMasked == MotionEvent.ACTION_POINTER_DOWN
|
|
111
|
+
sourceEvent.actionMasked == MotionEvent.ACTION_POINTER_DOWN ||
|
|
112
|
+
sourceEvent.actionMasked == MotionEvent.ACTION_BUTTON_PRESS
|
|
112
113
|
)
|
|
113
114
|
) {
|
|
114
115
|
handler = Handler(Looper.getMainLooper())
|
|
@@ -199,7 +200,7 @@ class LongPressGestureHandler(context: Context) : GestureHandler() {
|
|
|
199
200
|
handler.maxDist = PixelUtil.toPixelFromDIP(config.getDouble(KEY_MAX_DIST))
|
|
200
201
|
}
|
|
201
202
|
if (config.hasKey(KEY_NUMBER_OF_POINTERS)) {
|
|
202
|
-
handler.
|
|
203
|
+
handler.numberOfPointersRequired = config.getInt(KEY_NUMBER_OF_POINTERS)
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
|
|
@@ -160,7 +160,7 @@ class PanGestureHandler(context: Context?) : GestureHandler() {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
override fun onHandle(event: MotionEvent, sourceEvent: MotionEvent) {
|
|
163
|
-
if (
|
|
163
|
+
if (shouldSkipEvent(sourceEvent)) {
|
|
164
164
|
return
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -17,6 +17,9 @@ fun MotionEvent.isHoverAction(): Boolean = action == MotionEvent.ACTION_HOVER_MO
|
|
|
17
17
|
action == MotionEvent.ACTION_HOVER_ENTER ||
|
|
18
18
|
action == MotionEvent.ACTION_HOVER_EXIT
|
|
19
19
|
|
|
20
|
+
fun MotionEvent.isButtonAction(): Boolean = actionMasked == MotionEvent.ACTION_BUTTON_PRESS ||
|
|
21
|
+
actionMasked == MotionEvent.ACTION_BUTTON_RELEASE
|
|
22
|
+
|
|
20
23
|
val Display.minimumFrameTime: Float
|
|
21
24
|
get() {
|
|
22
25
|
val supportedModes = this.supportedModes
|
package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt
CHANGED
|
@@ -62,12 +62,14 @@ class RNGestureHandlerRootView(context: Context?) : ReactViewGroup(context) {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
override fun dispatchGenericMotionEvent(ev: MotionEvent) =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
override fun dispatchGenericMotionEvent(ev: MotionEvent) = if (rootViewEnabled &&
|
|
66
|
+
(ev.isHoverAction() || ev.isButtonAction()) &&
|
|
67
|
+
rootHelper!!.dispatchTouchEvent(ev)
|
|
68
|
+
) {
|
|
69
|
+
true
|
|
70
|
+
} else {
|
|
71
|
+
super.dispatchGenericMotionEvent(ev)
|
|
72
|
+
}
|
|
71
73
|
|
|
72
74
|
override fun requestDisallowInterceptTouchEvent(disallowIntercept: Boolean) {
|
|
73
75
|
if (rootViewEnabled) {
|
|
@@ -254,14 +254,14 @@
|
|
|
254
254
|
withHostDetector:self];
|
|
255
255
|
} else {
|
|
256
256
|
// Hierarchy was folded into a single UIView.
|
|
257
|
-
[manager
|
|
257
|
+
[manager attachHandlerForDetectorWithTag:handler.tag toView:self withActionType:actionType withHostDetector:self];
|
|
258
258
|
handler.virtualViewTag = @(viewTag);
|
|
259
259
|
}
|
|
260
260
|
[_attachedHandlers addObject:handler.tag];
|
|
261
261
|
return;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
[manager
|
|
264
|
+
[manager attachHandlerForDetectorWithTag:handler.tag toView:self withActionType:actionType withHostDetector:self];
|
|
265
265
|
[_attachedHandlers addObject:handler.tag];
|
|
266
266
|
}
|
|
267
267
|
|
|
@@ -351,10 +351,10 @@
|
|
|
351
351
|
if ([handlerManager.registry handlerWithTag:handlerTag] == nil) {
|
|
352
352
|
continue;
|
|
353
353
|
}
|
|
354
|
-
[handlerManager
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
354
|
+
[handlerManager attachHandlerForDetectorWithTag:handlerTag
|
|
355
|
+
toView:view
|
|
356
|
+
withActionType:RNGestureHandlerActionTypeNativeDetector
|
|
357
|
+
withHostDetector:self];
|
|
358
358
|
[_attachedHandlers addObject:handlerTag];
|
|
359
359
|
}
|
|
360
360
|
}
|
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
withActionType:(RNGestureHandlerActionType)actionType
|
|
30
30
|
withHostDetector:(nullable RNGHUIView *)hostDetector;
|
|
31
31
|
|
|
32
|
+
- (void)attachHandlerForDetectorWithTag:(nonnull NSNumber *)handlerTag
|
|
33
|
+
toView:(nonnull RNGHUIView *)view
|
|
34
|
+
withActionType:(RNGestureHandlerActionType)actionType
|
|
35
|
+
withHostDetector:(nullable RNGHUIView *)hostDetector;
|
|
36
|
+
|
|
32
37
|
- (void)setGestureHandlerConfig:(nonnull NSNumber *)handlerTag config:(nonnull NSDictionary *)config;
|
|
33
38
|
|
|
34
39
|
- (void)updateGestureHandlerConfig:(nonnull NSNumber *)handlerTag config:(nonnull NSDictionary *)config;
|
|
@@ -209,6 +209,15 @@ constexpr int NEW_ARCH_NUMBER_OF_ATTACH_RETRIES = 25;
|
|
|
209
209
|
[self registerViewWithGestureRecognizerAttachedIfNeeded:view];
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
+
- (void)attachHandlerForDetectorWithTag:(nonnull NSNumber *)handlerTag
|
|
213
|
+
toView:(nonnull RNGHUIView *)view
|
|
214
|
+
withActionType:(RNGestureHandlerActionType)actionType
|
|
215
|
+
withHostDetector:(nullable RNGHUIView *)hostDetector
|
|
216
|
+
{
|
|
217
|
+
[_registry attachHandlerWithTag:handlerTag toView:view withActionType:actionType withHostDetector:hostDetector];
|
|
218
|
+
[self registerViewWithGestureRecognizerAttachedIfNeeded:view];
|
|
219
|
+
}
|
|
220
|
+
|
|
212
221
|
- (void)setGestureHandlerConfig:(NSNumber *)handlerTag config:(NSDictionary *)config
|
|
213
222
|
{
|
|
214
223
|
RNGestureHandler *handler = [_registry handlerWithTag:handlerTag];
|
|
@@ -221,7 +221,10 @@ const Swipeable = props => {
|
|
|
221
221
|
|
|
222
222
|
const leftActionAnimation = useAnimatedStyle(() => {
|
|
223
223
|
return {
|
|
224
|
-
|
|
224
|
+
// Both action containers use `absoluteFill` and overlap, so the
|
|
225
|
+
// inactive one must not intercept touches meant for the visible
|
|
226
|
+
// actions.
|
|
227
|
+
pointerEvents: showLeftProgress.value === 0 ? 'none' : 'auto'
|
|
225
228
|
};
|
|
226
229
|
});
|
|
227
230
|
const leftElement = useCallback(() => /*#__PURE__*/_jsxs(Animated.View, {
|
|
@@ -233,7 +236,10 @@ const Swipeable = props => {
|
|
|
233
236
|
}), [appliedTranslation, leftActionAnimation, leftLayoutRef, leftWrapperLayoutRef, renderLeftActions, showLeftProgress, swipeableMethods]);
|
|
234
237
|
const rightActionAnimation = useAnimatedStyle(() => {
|
|
235
238
|
return {
|
|
236
|
-
|
|
239
|
+
// Both action containers use `absoluteFill` and overlap, so the
|
|
240
|
+
// inactive one must not intercept touches meant for the visible
|
|
241
|
+
// actions.
|
|
242
|
+
pointerEvents: showRightProgress.value === 0 ? 'none' : 'auto'
|
|
237
243
|
};
|
|
238
244
|
});
|
|
239
245
|
const rightElement = useCallback(() => /*#__PURE__*/_jsxs(Animated.View, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useEffect","useImperativeHandle","useMemo","I18nManager","StyleSheet","View","Animated","interpolate","measure","ReduceMotion","runOnJS","runOnUI","useAnimatedRef","useAnimatedStyle","useSharedValue","withSpring","Reanimated","tagMessage","GestureDetector","usePanGesture","useTapGesture","maybeUnpackValue","SHARED_VALUE_OFFSET","SwipeDirection","jsx","_jsx","jsxs","_jsxs","DRAG_TOSS","DEFAULT_FRICTION","DEFAULT_OVERSHOOT_FRICTION","DEFAULT_DRAG_OFFSET","DEFAULT_ENABLE_TRACKING_TWO_FINGER_GESTURE","Swipeable","props","ref","leftThreshold","rightThreshold","enabled","containerStyle","childrenContainerStyle","animationOptions","overshootLeft","overshootRight","testID","children","enableTrackpadTwoFingerGesture","dragOffsetFromLeft","dragOffsetFromRight","friction","overshootFriction","onSwipeableOpenStartDrag","onSwipeableCloseStartDrag","onSwipeableWillOpen","onSwipeableWillClose","onSwipeableOpen","onSwipeableClose","renderLeftActions","renderRightActions","simultaneousWith","requireToFail","block","hitSlop","remainingProps","__DEV__","checkValue","value","Error","isSharedValue","listenerId","Math","random","addListener","removeListener","shouldEnableTap","rowState","userDrag","appliedTranslation","rowWidth","leftWidth","rightWidth","showLeftProgress","showRightProgress","updateAnimatedEvent","shouldOvershootLeft","shouldOvershootRight","startOffset","offsetDrag","dispatchImmediateEvents","fromValue","toValue","RIGHT","LEFT","dispatchEndEvents","animateRow","velocityX","translationSpringConfig","mass","damping","stiffness","velocity","overshootClamping","reduceMotion","System","isClosing","moveToRight","usedWidth","progressSpringConfig","restDisplacementThreshold","restSpeedThreshold","frozenRowState","isFinished","progressTarget","sign","max","leftLayoutRef","leftWrapperLayoutRef","rightLayoutRef","updateElementWidths","leftLayout","leftWrapperLayout","rightLayout","pageX","swipeableMethods","close","_WORKLET","openLeft","openRight","reset","onRowLayout","nativeEvent","layout","width","leftActionAnimation","opacity","leftElement","style","styles","leftActions","rightActionAnimation","rightElement","rightActions","handleRelease","event","translationX","leftThresholdProp","rightThresholdProp","dragStarted","tapGesture","shouldCancelWhenOutside","onActivate","panGesture","activeOffsetX","onUpdate","direction","onDeactivate","onFinalize","animatedStyle","transform","translateX","pointerEvents","swipeableComponent","gesture","touchAction","onLayout","container","create","overflow","absoluteFill","flexDirection","isRTL"],"sourceRoot":"../../../../src","sources":["components/ReanimatedSwipeable/ReanimatedSwipeable.tsx"],"mappings":";;AACA,OAAOA,KAAK,IACVC,WAAW,EACXC,SAAS,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IACxDH,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","useCallback","useEffect","useImperativeHandle","useMemo","I18nManager","StyleSheet","View","Animated","interpolate","measure","ReduceMotion","runOnJS","runOnUI","useAnimatedRef","useAnimatedStyle","useSharedValue","withSpring","Reanimated","tagMessage","GestureDetector","usePanGesture","useTapGesture","maybeUnpackValue","SHARED_VALUE_OFFSET","SwipeDirection","jsx","_jsx","jsxs","_jsxs","DRAG_TOSS","DEFAULT_FRICTION","DEFAULT_OVERSHOOT_FRICTION","DEFAULT_DRAG_OFFSET","DEFAULT_ENABLE_TRACKING_TWO_FINGER_GESTURE","Swipeable","props","ref","leftThreshold","rightThreshold","enabled","containerStyle","childrenContainerStyle","animationOptions","overshootLeft","overshootRight","testID","children","enableTrackpadTwoFingerGesture","dragOffsetFromLeft","dragOffsetFromRight","friction","overshootFriction","onSwipeableOpenStartDrag","onSwipeableCloseStartDrag","onSwipeableWillOpen","onSwipeableWillClose","onSwipeableOpen","onSwipeableClose","renderLeftActions","renderRightActions","simultaneousWith","requireToFail","block","hitSlop","remainingProps","__DEV__","checkValue","value","Error","isSharedValue","listenerId","Math","random","addListener","removeListener","shouldEnableTap","rowState","userDrag","appliedTranslation","rowWidth","leftWidth","rightWidth","showLeftProgress","showRightProgress","updateAnimatedEvent","shouldOvershootLeft","shouldOvershootRight","startOffset","offsetDrag","dispatchImmediateEvents","fromValue","toValue","RIGHT","LEFT","dispatchEndEvents","animateRow","velocityX","translationSpringConfig","mass","damping","stiffness","velocity","overshootClamping","reduceMotion","System","isClosing","moveToRight","usedWidth","progressSpringConfig","restDisplacementThreshold","restSpeedThreshold","frozenRowState","isFinished","progressTarget","sign","max","leftLayoutRef","leftWrapperLayoutRef","rightLayoutRef","updateElementWidths","leftLayout","leftWrapperLayout","rightLayout","pageX","swipeableMethods","close","_WORKLET","openLeft","openRight","reset","onRowLayout","nativeEvent","layout","width","leftActionAnimation","pointerEvents","leftElement","style","styles","leftActions","rightActionAnimation","rightElement","rightActions","handleRelease","event","translationX","leftThresholdProp","rightThresholdProp","dragStarted","tapGesture","shouldCancelWhenOutside","onActivate","panGesture","activeOffsetX","onUpdate","direction","onDeactivate","onFinalize","animatedStyle","transform","translateX","swipeableComponent","gesture","touchAction","onLayout","container","create","overflow","absoluteFill","flexDirection","isRTL"],"sourceRoot":"../../../../src","sources":["components/ReanimatedSwipeable/ReanimatedSwipeable.tsx"],"mappings":";;AACA,OAAOA,KAAK,IACVC,WAAW,EACXC,SAAS,EACTC,mBAAmB,EACnBC,OAAO,QACF,OAAO;AAEd,SAASC,WAAW,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC5D,OAAOC,QAAQ,IACbC,WAAW,EACXC,OAAO,EACPC,YAAY,EACZC,OAAO,EACPC,OAAO,EACPC,cAAc,EACdC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAEhC,SAASC,UAAU,QAAQ,2CAA2C;AACtE,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,eAAe,QAAQ,oBAAoB;AAEpD,SAASC,aAAa,EAAEC,aAAa,QAAQ,yBAAyB;AACtE,SACEC,gBAAgB,EAChBC,mBAAmB,QACd,sCAAsC;AAM7C,SAASC,cAAc,QAAQ,4BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE5D,MAAMC,SAAS,GAAG,IAAI;AAEtB,MAAMC,gBAAgB,GAAG,CAAC;AAC1B,MAAMC,0BAA0B,GAAG,CAAC;AACpC,MAAMC,mBAAmB,GAAG,EAAE;AAC9B,MAAMC,0CAA0C,GAAG,KAAK;AAExD,MAAMC,SAAS,GAAIC,KAAqB,IAAK;EAC3C,MAAM;IACJC,GAAG;IACHC,aAAa;IACbC,cAAc;IACdC,OAAO;IACPC,cAAc;IACdC,sBAAsB;IACtBC,gBAAgB;IAChBC,aAAa;IACbC,cAAc;IACdC,MAAM;IACNC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AAMwG,MAAM,GAAGrI,UAAU,CAACiK,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,QAAQ,EAAE;EACZ,CAAC;EACD5B,WAAW,EAAE;IACX,GAAGtI,UAAU,CAACmK,YAAY;IAC1BC,aAAa,EAAErK,WAAW,CAACsK,KAAK,GAAG,aAAa,GAAG,KAAK;IACxDH,QAAQ,EAAE;EACZ,CAAC;EACDzB,YAAY,EAAE;IACZ,GAAGzI,UAAU,CAACmK,YAAY;IAC1BC,aAAa,EAAErK,WAAW,CAACsK,KAAK,GAAG,KAAK,GAAG,aAAa;IACxDH,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -12,17 +12,18 @@ const ExternalRelationsConfig = new Set(['simultaneousWith', 'requireToFail', 'b
|
|
|
12
12
|
export const allowedNativeProps = new Set([...CommonConfig,
|
|
13
13
|
// InternalConfigProps
|
|
14
14
|
'userSelect', 'enableContextMenu', 'touchAction', 'dispatchesAnimatedEvents', 'needsPointerData']);
|
|
15
|
-
|
|
16
|
-
// Don't pass testID to the native side in production
|
|
17
|
-
if (!__DEV__) {
|
|
18
|
-
allowedNativeProps.delete('testID');
|
|
19
|
-
}
|
|
20
15
|
export const HandlerCallbacks = new Set(['onBegin', 'onActivate', 'onUpdate', 'onDeactivate', 'onFinalize', 'onTouchesDown', 'onTouchesMove', 'onTouchesUp', 'onTouchesCancel']);
|
|
21
16
|
export const PropsToFilter = new Set([...HandlerCallbacks, ...ExternalRelationsConfig,
|
|
22
17
|
// Config props
|
|
23
18
|
'fillInDefaultValues', 'changeEventCalculator', 'disableReanimated', 'shouldUseReanimatedDetector', 'useAnimated', 'runOnJS',
|
|
24
19
|
// Pan offset props before remapping:
|
|
25
20
|
'activeOffsetY', 'failOffsetX', 'failOffsetY', 'activeOffsetX']);
|
|
21
|
+
|
|
22
|
+
// Don't pass testID to the native side in production
|
|
23
|
+
if (!__DEV__) {
|
|
24
|
+
allowedNativeProps.delete('testID');
|
|
25
|
+
PropsToFilter.add('testID');
|
|
26
|
+
}
|
|
26
27
|
export const PropsWhiteLists = new Map([[SingleGestureName.Pan, PanNativeProperties], [SingleGestureName.Tap, TapNativeProperties], [SingleGestureName.Native, NativeHandlerNativeProperties], [SingleGestureName.Fling, FlingNativeProperties], [SingleGestureName.Hover, HoverNativeProperties], [SingleGestureName.LongPress, LongPressNativeProperties]]);
|
|
27
28
|
export const EMPTY_WHITE_LIST = new Set();
|
|
28
29
|
export const NativeWrapperProps = new Set([...CommonConfig, ...HandlerCallbacks, ...NativeHandlerNativeProperties, ...ExternalRelationsConfig, 'disableReanimated']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SingleGestureName","FlingNativeProperties","HoverNativeProperties","LongPressNativeProperties","NativeHandlerNativeProperties","PanNativeProperties","TapNativeProperties","CommonConfig","Set","ExternalRelationsConfig","allowedNativeProps","
|
|
1
|
+
{"version":3,"names":["SingleGestureName","FlingNativeProperties","HoverNativeProperties","LongPressNativeProperties","NativeHandlerNativeProperties","PanNativeProperties","TapNativeProperties","CommonConfig","Set","ExternalRelationsConfig","allowedNativeProps","HandlerCallbacks","PropsToFilter","__DEV__","delete","add","PropsWhiteLists","Map","Pan","Tap","Native","Fling","Hover","LongPress","EMPTY_WHITE_LIST","NativeWrapperProps"],"sourceRoot":"../../../../../src","sources":["v3/hooks/utils/propsWhiteList.ts"],"mappings":";;AAQA,SAASA,iBAAiB,QAAQ,aAAa;AAE/C,SAASC,qBAAqB,QAAQ,8BAA8B;AACpE,SAASC,qBAAqB,QAAQ,8BAA8B;AACpE,SAASC,yBAAyB,QAAQ,sCAAsC;AAChF,SAASC,6BAA6B,QAAQ,gCAAgC;AAC9E,SAASC,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,mBAAmB,QAAQ,0BAA0B;AAE9D,MAAMC,YAAY,GAAG,IAAIC,GAAG,CAA4B,CACtD,SAAS,EACT,yBAAyB,EACzB,SAAS,EACT,cAAc,EACd,aAAa,EAC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pB,yBAAyB,CAAC,CACzD,CAAC;AAEF,OAAO,MAAMqB,gBAAgB,GAAG,IAAIhB,GAAG,CAAS,CAAC;AAEjD,OAAO,MAAMiB,kBAAkB,GAAG,IAAIjB,GAAG,CAEvC,CACA,GAAGD,YAAY,EACf,GAAGI,gBAAgB,EACnB,GAAGP,6BAA6B,EAChC,GAAGK,uBAAuB,EAC1B,mBAAmB,CACpB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReanimatedSwipeable.d.ts","sourceRoot":"","sources":["../../../../src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAKN,MAAM,OAAO,CAAC;AAyBf,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,4BAA4B,CAAC;AAUpC,QAAA,MAAM,SAAS,GAAI,OAAO,cAAc,
|
|
1
|
+
{"version":3,"file":"ReanimatedSwipeable.d.ts","sourceRoot":"","sources":["../../../../src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAKN,MAAM,OAAO,CAAC;AAyBf,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,4BAA4B,CAAC;AAUpC,QAAA,MAAM,SAAS,GAAI,OAAO,cAAc,sBAwiBvC,CAAC;AAEF,eAAe,SAAS,CAAC;AACzB,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propsWhiteList.d.ts","sourceRoot":"","sources":["../../../../../src/v3/hooks/utils/propsWhiteList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAEjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AA2BhD,eAAO,MAAM,kBAAkB,gQAW7B,CAAC;
|
|
1
|
+
{"version":3,"file":"propsWhiteList.d.ts","sourceRoot":"","sources":["../../../../../src/v3/hooks/utils/propsWhiteList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAEjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AA2BhD,eAAO,MAAM,kBAAkB,gQAW7B,CAAC;AAEH,eAAO,MAAM,gBAAgB,+CAY3B,CAAC;AAEH,eAAO,MAAM,aAAa,mDAmBxB,CAAC;AAQH,eAAO,MAAM,eAAe,gDAU1B,CAAC;AAEH,eAAO,MAAM,gBAAgB,aAAoB,CAAC;AAElD,eAAO,MAAM,kBAAkB,4eAQ7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -29,11 +29,14 @@ void RNGestureHandlerDetectorShadowNode::initialize() {
|
|
|
29
29
|
// Will clone the child and ensure it's not flattened
|
|
30
30
|
replaceChild(*children[i], children[i], i);
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
updateOrderIndexFromChildren();
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
void RNGestureHandlerDetectorShadowNode::appendChild(
|
|
35
37
|
const std::shared_ptr<const ShadowNode> &child) {
|
|
36
38
|
YogaLayoutableShadowNode::appendChild(unflattenNode(child));
|
|
39
|
+
updateOrderIndexFromChildren();
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
void RNGestureHandlerDetectorShadowNode::replaceChild(
|
|
@@ -42,6 +45,7 @@ void RNGestureHandlerDetectorShadowNode::replaceChild(
|
|
|
42
45
|
size_t suggestedIndex) {
|
|
43
46
|
YogaLayoutableShadowNode::replaceChild(
|
|
44
47
|
oldChild, unflattenNode(newChild), suggestedIndex);
|
|
48
|
+
updateOrderIndexFromChildren();
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
void RNGestureHandlerDetectorShadowNode::layout(LayoutContext layoutContext) {
|
|
@@ -127,4 +131,19 @@ RNGestureHandlerDetectorShadowNode::unflattenNode(
|
|
|
127
131
|
return clonedNode;
|
|
128
132
|
}
|
|
129
133
|
|
|
134
|
+
void RNGestureHandlerDetectorShadowNode::updateOrderIndexFromChildren() {
|
|
135
|
+
const auto &children = getChildren();
|
|
136
|
+
if (children.size() != 1) {
|
|
137
|
+
ShadowNode::orderIndex_ = 0;
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// The detector behaves like a transparent wrapper around its child.
|
|
142
|
+
// With a single child, mirror the child's RN-computed order index so styles
|
|
143
|
+
// such as zIndex keep affecting sibling ordering despite the extra native
|
|
144
|
+
// detector node. With multiple children, no single order index can preserve
|
|
145
|
+
// each child's independent ordering relative to outside siblings.
|
|
146
|
+
ShadowNode::orderIndex_ = children.front()->getOrderIndex();
|
|
147
|
+
}
|
|
148
|
+
|
|
130
149
|
} // namespace facebook::react
|
|
@@ -65,6 +65,7 @@ class RNGestureHandlerDetectorShadowNode final
|
|
|
65
65
|
std::shared_ptr<const ShadowNode> unflattenNode(
|
|
66
66
|
const std::shared_ptr<const ShadowNode> &node);
|
|
67
67
|
void initialize();
|
|
68
|
+
void updateOrderIndexFromChildren();
|
|
68
69
|
|
|
69
70
|
std::optional<LayoutMetrics> previousLayoutMetrics_;
|
|
70
71
|
};
|
|
@@ -392,7 +392,10 @@ const Swipeable = (props: SwipeableProps) => {
|
|
|
392
392
|
|
|
393
393
|
const leftActionAnimation = useAnimatedStyle(() => {
|
|
394
394
|
return {
|
|
395
|
-
|
|
395
|
+
// Both action containers use `absoluteFill` and overlap, so the
|
|
396
|
+
// inactive one must not intercept touches meant for the visible
|
|
397
|
+
// actions.
|
|
398
|
+
pointerEvents: showLeftProgress.value === 0 ? 'none' : 'auto',
|
|
396
399
|
};
|
|
397
400
|
});
|
|
398
401
|
|
|
@@ -422,7 +425,10 @@ const Swipeable = (props: SwipeableProps) => {
|
|
|
422
425
|
|
|
423
426
|
const rightActionAnimation = useAnimatedStyle(() => {
|
|
424
427
|
return {
|
|
425
|
-
|
|
428
|
+
// Both action containers use `absoluteFill` and overlap, so the
|
|
429
|
+
// inactive one must not intercept touches meant for the visible
|
|
430
|
+
// actions.
|
|
431
|
+
pointerEvents: showRightProgress.value === 0 ? 'none' : 'auto',
|
|
426
432
|
};
|
|
427
433
|
});
|
|
428
434
|
|
|
@@ -46,11 +46,6 @@ export const allowedNativeProps = new Set<
|
|
|
46
46
|
'needsPointerData',
|
|
47
47
|
]);
|
|
48
48
|
|
|
49
|
-
// Don't pass testID to the native side in production
|
|
50
|
-
if (!__DEV__) {
|
|
51
|
-
allowedNativeProps.delete('testID');
|
|
52
|
-
}
|
|
53
|
-
|
|
54
49
|
export const HandlerCallbacks = new Set<
|
|
55
50
|
keyof Required<GestureCallbacks<unknown, unknown>>
|
|
56
51
|
>([
|
|
@@ -86,6 +81,12 @@ export const PropsToFilter = new Set<
|
|
|
86
81
|
'activeOffsetX',
|
|
87
82
|
]);
|
|
88
83
|
|
|
84
|
+
// Don't pass testID to the native side in production
|
|
85
|
+
if (!__DEV__) {
|
|
86
|
+
allowedNativeProps.delete('testID');
|
|
87
|
+
PropsToFilter.add('testID');
|
|
88
|
+
}
|
|
89
|
+
|
|
89
90
|
export const PropsWhiteLists = new Map<
|
|
90
91
|
SingleGestureName,
|
|
91
92
|
HandlersPropsWhiteList
|