react-native-gesture-handler 3.5.0 → 3.5.1
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/apple/RNGestureHandler.h +2 -0
- package/apple/RNGestureHandler.mm +23 -2
- package/apple/RNGestureHandlerManager.mm +32 -15
- package/apple/RNGestureHandlerModule.mm +21 -4
- package/lib/module/RNGestureHandlerModule.web.js +3 -0
- package/lib/module/RNGestureHandlerModule.web.js.map +1 -1
- package/lib/module/v3/components/GestureButtons.js +7 -0
- package/lib/module/v3/components/GestureButtons.js.map +1 -1
- package/lib/module/v3/components/GestureComponents.js +10 -0
- package/lib/module/v3/components/GestureComponents.js.map +1 -1
- package/lib/module/v3/components/GestureComponents.web.js +8 -0
- package/lib/module/v3/components/GestureComponents.web.js.map +1 -1
- package/lib/module/v3/components/PressableWithTouchable.js +15 -6
- package/lib/module/v3/components/PressableWithTouchable.js.map +1 -1
- package/lib/module/v3/components/ScrollViewResponderInterceptor.js +45 -1
- package/lib/module/v3/components/ScrollViewResponderInterceptor.js.map +1 -1
- package/lib/module/v3/components/StatefulPressable.js +18 -7
- package/lib/module/v3/components/StatefulPressable.js.map +1 -1
- package/lib/module/v3/components/Touchable/Touchable.js +27 -8
- package/lib/module/v3/components/Touchable/Touchable.js.map +1 -1
- package/lib/module/v3/detectors/NativeDetector.js +7 -2
- package/lib/module/v3/detectors/NativeDetector.js.map +1 -1
- package/lib/module/v3/detectors/VirtualDetector/InterceptingGestureDetector.js +7 -2
- package/lib/module/v3/detectors/VirtualDetector/InterceptingGestureDetector.js.map +1 -1
- package/lib/module/v3/detectors/VirtualDetector/VirtualDetector.js +2 -0
- package/lib/module/v3/detectors/VirtualDetector/VirtualDetector.js.map +1 -1
- package/lib/module/v3/nativeWrapperGuard.js +48 -0
- package/lib/module/v3/nativeWrapperGuard.js.map +1 -0
- package/lib/module/v3/scrollViewInterop.js +9 -0
- package/lib/module/v3/scrollViewInterop.js.map +1 -1
- package/lib/module/web/constants.js +3 -1
- package/lib/module/web/constants.js.map +1 -1
- package/lib/module/web/handlers/GestureHandler.js +15 -4
- package/lib/module/web/handlers/GestureHandler.js.map +1 -1
- package/lib/module/web/handlers/LongPressGestureHandler.js +6 -6
- package/lib/module/web/handlers/LongPressGestureHandler.js.map +1 -1
- package/lib/module/web/tools/GestureHandlerWebDelegate.js +42 -9
- package/lib/module/web/tools/GestureHandlerWebDelegate.js.map +1 -1
- package/lib/module/web/tools/PointerTracker.js +10 -6
- package/lib/module/web/tools/PointerTracker.js.map +1 -1
- package/lib/typescript/RNGestureHandlerModule.web.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureButtons.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureComponents.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureComponents.web.d.ts.map +1 -1
- package/lib/typescript/v3/components/PressableWithTouchable.d.ts.map +1 -1
- package/lib/typescript/v3/components/ScrollViewResponderInterceptor.d.ts +2 -1
- package/lib/typescript/v3/components/ScrollViewResponderInterceptor.d.ts.map +1 -1
- package/lib/typescript/v3/components/StatefulPressable.d.ts.map +1 -1
- package/lib/typescript/v3/components/Touchable/Touchable.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/NativeDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/InterceptingGestureDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/VirtualDetector.d.ts.map +1 -1
- package/lib/typescript/v3/nativeWrapperGuard.d.ts +5 -0
- package/lib/typescript/v3/nativeWrapperGuard.d.ts.map +1 -0
- package/lib/typescript/v3/scrollViewInterop.d.ts +1 -0
- package/lib/typescript/v3/scrollViewInterop.d.ts.map +1 -1
- package/lib/typescript/web/constants.d.ts +1 -1
- package/lib/typescript/web/constants.d.ts.map +1 -1
- package/lib/typescript/web/handlers/GestureHandler.d.ts +4 -3
- package/lib/typescript/web/handlers/GestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/IGestureHandler.d.ts +1 -1
- package/lib/typescript/web/handlers/IGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts +2 -3
- package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/interfaces.d.ts +1 -1
- package/lib/typescript/web/interfaces.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts +3 -0
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts.map +1 -1
- package/lib/typescript/web/tools/PointerTracker.d.ts +1 -1
- package/lib/typescript/web/tools/PointerTracker.d.ts.map +1 -1
- package/package.json +12 -4
- package/src/RNGestureHandlerModule.web.ts +3 -0
- package/src/v3/components/GestureButtons.tsx +3 -0
- package/src/v3/components/GestureComponents.tsx +11 -1
- package/src/v3/components/GestureComponents.web.tsx +9 -0
- package/src/v3/components/PressableWithTouchable.tsx +16 -6
- package/src/v3/components/ScrollViewResponderInterceptor.tsx +57 -0
- package/src/v3/components/StatefulPressable.tsx +20 -6
- package/src/v3/components/Touchable/Touchable.tsx +33 -8
- package/src/v3/detectors/NativeDetector.tsx +5 -1
- package/src/v3/detectors/VirtualDetector/InterceptingGestureDetector.tsx +5 -1
- package/src/v3/detectors/VirtualDetector/VirtualDetector.tsx +2 -0
- package/src/v3/nativeWrapperGuard.ts +74 -0
- package/src/v3/scrollViewInterop.ts +10 -0
- package/src/web/constants.ts +3 -1
- package/src/web/handlers/GestureHandler.ts +16 -6
- package/src/web/handlers/IGestureHandler.ts +1 -1
- package/src/web/handlers/LongPressGestureHandler.ts +7 -20
- package/src/web/interfaces.ts +1 -1
- package/src/web/tools/GestureHandlerWebDelegate.ts +65 -14
- package/src/web/tools/PointerTracker.ts +13 -6
package/apple/RNGestureHandler.h
CHANGED
|
@@ -89,6 +89,8 @@
|
|
|
89
89
|
@property (nonatomic, weak, nullable) RNGHUIView *hostDetectorView;
|
|
90
90
|
@property (nonatomic, nullable, assign) NSNumber *virtualViewTag;
|
|
91
91
|
@property (nonatomic, copy, nullable) NSNumber *viewTag;
|
|
92
|
+
/// The view registered for `viewTag` when the handler was bound. Fabric may recycle it for another component.
|
|
93
|
+
@property (nonatomic, weak, nullable) RNGHUIView *taggedView;
|
|
92
94
|
@property (nonatomic, readonly) RNGestureHandlerState lastState;
|
|
93
95
|
|
|
94
96
|
/**
|
|
@@ -114,7 +114,9 @@ static NSHashTable<RNGestureHandler *> *allGestureHandlers;
|
|
|
114
114
|
|
|
115
115
|
- (void)resetConfig
|
|
116
116
|
{
|
|
117
|
-
|
|
117
|
+
// Only the stored value is reset here. The recognizer is synced once the new config is applied,
|
|
118
|
+
// see `syncRecognizerEnabled`.
|
|
119
|
+
_enabled = YES;
|
|
118
120
|
self.testID = nil;
|
|
119
121
|
_manualActivation = NO;
|
|
120
122
|
_shouldCancelWhenOutside = NO;
|
|
@@ -139,7 +141,7 @@ static NSHashTable<RNGestureHandler *> *allGestureHandlers;
|
|
|
139
141
|
{
|
|
140
142
|
id prop = config[@"enabled"];
|
|
141
143
|
if (prop != nil) {
|
|
142
|
-
|
|
144
|
+
_enabled = [RCTConvert BOOL:prop];
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
prop = config[@"testID"];
|
|
@@ -202,6 +204,8 @@ static NSHashTable<RNGestureHandler *> *allGestureHandlers;
|
|
|
202
204
|
} else if (prop != nil) {
|
|
203
205
|
_hitSlop = RNGHHitSlopEmpty;
|
|
204
206
|
}
|
|
207
|
+
|
|
208
|
+
[self syncRecognizerEnabled];
|
|
205
209
|
}
|
|
206
210
|
|
|
207
211
|
- (void)updateRelations:(NSDictionary *)relations
|
|
@@ -217,6 +221,16 @@ static NSHashTable<RNGestureHandler *> *allGestureHandlers;
|
|
|
217
221
|
self.recognizer.enabled = enabled;
|
|
218
222
|
}
|
|
219
223
|
|
|
224
|
+
// Disabling an active recognizer cancels it synchronously, and the cancellation event is sent right away.
|
|
225
|
+
// The recognizer is therefore synced at the end of `updateConfig:`, once `dispatchesAnimatedEvents` and
|
|
226
|
+
// `dispatchesReanimatedEvents` hold their new values, so that the event reaches the right handler type.
|
|
227
|
+
- (void)syncRecognizerEnabled
|
|
228
|
+
{
|
|
229
|
+
if (self.recognizer.enabled != _enabled) {
|
|
230
|
+
self.recognizer.enabled = _enabled;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
220
234
|
- (void)setCurrentPointerType:(RNGestureHandlerPointerType)pointerType
|
|
221
235
|
{
|
|
222
236
|
_pointerType = pointerType;
|
|
@@ -347,6 +361,7 @@ static NSHashTable<RNGestureHandler *> *allGestureHandlers;
|
|
|
347
361
|
self.hostDetectorView = nil;
|
|
348
362
|
self.virtualViewTag = nil;
|
|
349
363
|
self.viewTag = nil;
|
|
364
|
+
self.taggedView = nil;
|
|
350
365
|
|
|
351
366
|
[self unbindManualActivation];
|
|
352
367
|
}
|
|
@@ -410,6 +425,12 @@ static NSHashTable<RNGestureHandler *> *allGestureHandlers;
|
|
|
410
425
|
return;
|
|
411
426
|
}
|
|
412
427
|
|
|
428
|
+
// UIKit can invoke the action synchronously during removeGestureRecognizer:, after clearing view.
|
|
429
|
+
// unbindFromView already finalizes the gesture while attached, therefore we can ignore the stale callback.
|
|
430
|
+
if (recognizer.view == nil) {
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
|
|
413
434
|
RNGHUIView *view = [self chooseViewForInteraction:recognizer];
|
|
414
435
|
|
|
415
436
|
// it may happen that the gesture recognizer is reset after it's been unbound from the view,
|
|
@@ -48,6 +48,7 @@ constexpr int NEW_ARCH_NUMBER_OF_ATTACH_RETRIES = 25;
|
|
|
48
48
|
NSHashTable<RNRootViewGestureRecognizer *> *_rootViewGestureRecognizers;
|
|
49
49
|
NSMutableDictionary<NSNumber *, NSNumber *> *_attachRetryCounter;
|
|
50
50
|
NSMutableSet *_droppedHandlers;
|
|
51
|
+
NSMutableDictionary<NSNumber *, NSNumber *> *_viewTagsOfBoundHandlers;
|
|
51
52
|
RCTModuleRegistry *_moduleRegistry;
|
|
52
53
|
RCTViewRegistry *_viewRegistry;
|
|
53
54
|
id<RCTEventDispatcherProtocol> _eventDispatcher;
|
|
@@ -76,6 +77,7 @@ constexpr int NEW_ARCH_NUMBER_OF_ATTACH_RETRIES = 25;
|
|
|
76
77
|
_rootViewGestureRecognizers = [NSHashTable hashTableWithOptions:NSPointerFunctionsWeakMemory];
|
|
77
78
|
_attachRetryCounter = [[NSMutableDictionary alloc] init];
|
|
78
79
|
_droppedHandlers = [NSMutableSet set];
|
|
80
|
+
_viewTagsOfBoundHandlers = [NSMutableDictionary new];
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
- (void)createGestureHandler:(NSString *)handlerName tag:(NSNumber *)handlerTag config:(NSDictionary *)config
|
|
@@ -185,6 +187,7 @@ constexpr int NEW_ARCH_NUMBER_OF_ATTACH_RETRIES = 25;
|
|
|
185
187
|
if (view == nil || view.superview == nil) {
|
|
186
188
|
return;
|
|
187
189
|
}
|
|
190
|
+
RNGHUIView *taggedView = view;
|
|
188
191
|
|
|
189
192
|
// I think it should be moved to RNNativeViewHandler, but that would require
|
|
190
193
|
// additional logic for setting contentView.reactTag, this works for now
|
|
@@ -206,6 +209,8 @@ constexpr int NEW_ARCH_NUMBER_OF_ATTACH_RETRIES = 25;
|
|
|
206
209
|
// returned as event.target
|
|
207
210
|
|
|
208
211
|
[_registry attachHandlerWithTag:handlerTag toView:view withActionType:actionType withHostDetector:hostDetector];
|
|
212
|
+
handler.taggedView = taggedView;
|
|
213
|
+
_viewTagsOfBoundHandlers[handlerTag] = viewTag;
|
|
209
214
|
[self registerViewWithGestureRecognizerAttachedIfNeeded:view];
|
|
210
215
|
}
|
|
211
216
|
|
|
@@ -215,6 +220,7 @@ constexpr int NEW_ARCH_NUMBER_OF_ATTACH_RETRIES = 25;
|
|
|
215
220
|
withHostDetector:(nullable RNGHUIView *)hostDetector
|
|
216
221
|
{
|
|
217
222
|
[_registry attachHandlerWithTag:handlerTag toView:view withActionType:actionType withHostDetector:hostDetector];
|
|
223
|
+
[_viewTagsOfBoundHandlers removeObjectForKey:handlerTag];
|
|
218
224
|
[self registerViewWithGestureRecognizerAttachedIfNeeded:view];
|
|
219
225
|
}
|
|
220
226
|
|
|
@@ -240,11 +246,13 @@ constexpr int NEW_ARCH_NUMBER_OF_ATTACH_RETRIES = 25;
|
|
|
240
246
|
{
|
|
241
247
|
[_registry dropHandlerWithTag:handlerTag];
|
|
242
248
|
[_droppedHandlers addObject:handlerTag];
|
|
249
|
+
[_viewTagsOfBoundHandlers removeObjectForKey:handlerTag];
|
|
243
250
|
}
|
|
244
251
|
|
|
245
252
|
- (void)dropAllGestureHandlers
|
|
246
253
|
{
|
|
247
254
|
[_registry dropAllHandlers];
|
|
255
|
+
[_viewTagsOfBoundHandlers removeAllObjects];
|
|
248
256
|
}
|
|
249
257
|
|
|
250
258
|
- (id)handlerWithTag:(NSNumber *)handlerTag
|
|
@@ -254,23 +262,32 @@ constexpr int NEW_ARCH_NUMBER_OF_ATTACH_RETRIES = 25;
|
|
|
254
262
|
|
|
255
263
|
- (void)reattachHandlersIfNeeded
|
|
256
264
|
{
|
|
257
|
-
//
|
|
258
|
-
// display:none
|
|
259
|
-
//
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
// Handlers using the old api or virtual detectors are bound to views by tag. On Fabric, the view
|
|
266
|
+
// of an unmounted component (e.g. under display:none) goes to the recycle pool and may be reused
|
|
267
|
+
// by another component, so detach from it and bind again once a view for the tag is mounted.
|
|
268
|
+
for (NSNumber *handlerTag in _viewTagsOfBoundHandlers.allKeys) {
|
|
269
|
+
NSNumber *viewTag = _viewTagsOfBoundHandlers[handlerTag];
|
|
270
|
+
RNGestureHandler *handler = [_registry handlerWithTag:handlerTag];
|
|
271
|
+
RNGHUIView *hostDetector = handler.hostDetectorView;
|
|
272
|
+
if ([handler usesNativeOrVirtualDetector] && hostDetector == nil) {
|
|
273
|
+
// The detector has detached the handler.
|
|
274
|
+
[_viewTagsOfBoundHandlers removeObjectForKey:handlerTag];
|
|
275
|
+
continue;
|
|
276
|
+
}
|
|
268
277
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
withActionType:handler.actionType
|
|
272
|
-
withHostDetector:nil];
|
|
278
|
+
if ([_viewRegistry viewForReactTag:viewTag] == handler.taggedView) {
|
|
279
|
+
continue;
|
|
273
280
|
}
|
|
281
|
+
|
|
282
|
+
// Some handlers (e.g. hover on macOS) don't call super in unbindFromView.
|
|
283
|
+
[handler unbindFromView];
|
|
284
|
+
handler.taggedView = nil;
|
|
285
|
+
// Keep the detector, so it can still detach the handler while it has no view.
|
|
286
|
+
handler.hostDetectorView = hostDetector;
|
|
287
|
+
[self maybeBindHandler:handlerTag
|
|
288
|
+
toViewWithTag:viewTag
|
|
289
|
+
withActionType:handler.actionType
|
|
290
|
+
withHostDetector:hostDetector];
|
|
274
291
|
}
|
|
275
292
|
}
|
|
276
293
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
#import <React/RCTBridge+Private.h>
|
|
11
11
|
#import <React/RCTBridge.h>
|
|
12
|
+
#import <React/RCTSurfacePresenterStub.h>
|
|
12
13
|
#import <React/RCTUtils.h>
|
|
13
14
|
#import <ReactCommon/CallInvoker.h>
|
|
14
15
|
#import <ReactCommon/RCTTurboModule.h>
|
|
@@ -28,7 +29,7 @@ using namespace gesturehandler;
|
|
|
28
29
|
using namespace facebook;
|
|
29
30
|
using namespace react;
|
|
30
31
|
|
|
31
|
-
@interface RNGestureHandlerModule () <RCTTurboModule, RCTTurboModuleWithJSIBindings>
|
|
32
|
+
@interface RNGestureHandlerModule () <RCTTurboModule, RCTTurboModuleWithJSIBindings, RCTSurfacePresenterObserver>
|
|
32
33
|
|
|
33
34
|
@end
|
|
34
35
|
|
|
@@ -39,6 +40,7 @@ typedef void (^GestureHandlerOperation)(RNGestureHandlerManager *manager);
|
|
|
39
40
|
NSMutableArray<GestureHandlerOperation> *_operations;
|
|
40
41
|
|
|
41
42
|
jsi::Runtime *_rnRuntime;
|
|
43
|
+
id<RCTSurfacePresenterStub> _surfacePresenter;
|
|
42
44
|
int _moduleId;
|
|
43
45
|
bool _uiRuntimeDecorated;
|
|
44
46
|
}
|
|
@@ -66,8 +68,15 @@ RCT_EXPORT_MODULE()
|
|
|
66
68
|
return YES;
|
|
67
69
|
}
|
|
68
70
|
|
|
71
|
+
- (void)setSurfacePresenter:(id<RCTSurfacePresenterStub>)surfacePresenter
|
|
72
|
+
{
|
|
73
|
+
_surfacePresenter = surfacePresenter;
|
|
74
|
+
}
|
|
75
|
+
|
|
69
76
|
- (void)invalidate
|
|
70
77
|
{
|
|
78
|
+
[_surfacePresenter removeObserver:self];
|
|
79
|
+
|
|
71
80
|
RNGestureHandlerManager *handlerManager = [RNGestureHandlerModule handlerManagerForModuleId:_moduleId];
|
|
72
81
|
|
|
73
82
|
// Clear observations before the entry is nulled - the async drop below keeps the registry
|
|
@@ -113,6 +122,12 @@ RCT_EXPORT_MODULE()
|
|
|
113
122
|
_managers[_moduleId] = [[RNGestureHandlerManager alloc] initWithModuleRegistry:self.moduleRegistry
|
|
114
123
|
viewRegistry:_viewRegistry_DEPRECATED];
|
|
115
124
|
_operations = [NSMutableArray new];
|
|
125
|
+
[_surfacePresenter addObserver:self];
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
- (void)didMountComponentsWithRootTag:(NSInteger)rootTag
|
|
129
|
+
{
|
|
130
|
+
[[RNGestureHandlerModule handlerManagerForModuleId:_moduleId] reattachHandlersIfNeeded];
|
|
116
131
|
}
|
|
117
132
|
|
|
118
133
|
- (bool)tryInstallUIRuntimeBindings
|
|
@@ -195,9 +210,11 @@ RCT_EXPORT_MODULE()
|
|
|
195
210
|
}];
|
|
196
211
|
}
|
|
197
212
|
|
|
198
|
-
|
|
199
|
-
[
|
|
200
|
-
|
|
213
|
+
if (_surfacePresenter == nil) {
|
|
214
|
+
[self.viewRegistry_DEPRECATED addUIBlock:^(RCTViewRegistry *viewRegistry) {
|
|
215
|
+
[manager reattachHandlersIfNeeded];
|
|
216
|
+
}];
|
|
217
|
+
}
|
|
201
218
|
}
|
|
202
219
|
|
|
203
220
|
- (nonnull NSNumber *)installUIRuntimeBindings
|
|
@@ -45,6 +45,9 @@ export default {
|
|
|
45
45
|
NodeManager.getHandler(handlerTag).setGestureConfig(newConfig);
|
|
46
46
|
},
|
|
47
47
|
updateGestureHandlerConfig(handlerTag, newConfig) {
|
|
48
|
+
if (!NodeManager.hasHandler(handlerTag)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
48
51
|
NodeManager.getHandler(handlerTag).updateGestureConfig(newConfig);
|
|
49
52
|
},
|
|
50
53
|
getGestureHandlerNode(handlerTag) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Gestures","GestureHandlerWebDelegate","InteractionManager","NodeManager","shouldPreventDrop","createGestureHandler","handlerName","handlerTag","config","Error","GestureClass","setGestureHandlerConfig","attachGestureHandler","newView","actionType","propsRef","hostDetector","Element","Component","handler","getHandler","constructor","name","init","detachGestureHandler","newConfig","setGestureConfig","updateGestureHandlerConfig","updateGestureConfig","getGestureHandlerNode","dropGestureHandler","configureRelations","relations","
|
|
1
|
+
{"version":3,"names":["React","Gestures","GestureHandlerWebDelegate","InteractionManager","NodeManager","shouldPreventDrop","createGestureHandler","handlerName","handlerTag","config","Error","GestureClass","setGestureHandlerConfig","attachGestureHandler","newView","actionType","propsRef","hostDetector","Element","Component","handler","getHandler","constructor","name","init","detachGestureHandler","newConfig","setGestureConfig","updateGestureHandlerConfig","hasHandler","updateGestureConfig","getGestureHandlerNode","dropGestureHandler","configureRelations","relations","instance","configureInteractions","flushOperations","installUIRuntimeBindings","getModuleId"],"sourceRoot":"../../src","sources":["RNGestureHandlerModule.web.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB,SAASC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et } from 'react-native';
|
|
|
5
5
|
import GestureHandlerButton from '../../components/GestureHandlerButton';
|
|
6
6
|
import { getTVProps } from '../../components/utils';
|
|
7
7
|
import createNativeWrapper from '../createNativeWrapper';
|
|
8
|
+
import { registerNativeWrappers } from '../nativeWrapperGuard';
|
|
8
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
const RawButtonInner = createNativeWrapper(GestureHandlerButton, {
|
|
10
11
|
shouldCancelWhenOutside: false,
|
|
@@ -156,5 +157,11 @@ export const BorderlessButton = props => {
|
|
|
156
157
|
children: children
|
|
157
158
|
});
|
|
158
159
|
};
|
|
160
|
+
registerNativeWrappers({
|
|
161
|
+
RawButton,
|
|
162
|
+
BaseButton,
|
|
163
|
+
RectButton,
|
|
164
|
+
BorderlessButton
|
|
165
|
+
});
|
|
159
166
|
export { default as PureNativeButton } from '../../components/GestureHandlerButton';
|
|
160
167
|
//# sourceMappingURL=GestureButtons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","Animated","Platform","StyleSheet","GestureHandlerButton","getTVProps","createNativeWrapper","jsx","_jsx","jsxs","_jsxs","RawButtonInner","shouldCancelWhenOutside","shouldActivateOnStart","RawButton","props","needsOffscreenAlphaCompositing","BaseButton","longPressDetected","longPressTimeout","undefined","delayLongPress","onLongPress","onPress","onActiveStateChange","rest","wrappedLongPress","current","onBegin","e","pointerInside","setTimeout","onActivate","clearTimeout","onDeactivate","onFinalize","canceled","tvProps","AnimatedBaseButton","createAnimatedComponent","btnStyles","create","underlay","position","left","right","bottom","top","RectButton","children","style","activeOpacity","underlayColor","opacity","Value","active","OS","setValue","resolvedStyle","flatten","View","backgroundColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","BorderlessButton","ref","borderless","default","PureNativeButton"],"sourceRoot":"../../../../src","sources":["v3/components/GestureButtons.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AAErC,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAE7D,OAAOC,oBAAoB,MAAM,uCAAuC;AACxE,SAASC,UAAU,QAAQ,wBAAwB;AACnD,OAAOC,mBAAmB,MAAM,wBAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["React","useRef","Animated","Platform","StyleSheet","GestureHandlerButton","getTVProps","createNativeWrapper","registerNativeWrappers","jsx","_jsx","jsxs","_jsxs","RawButtonInner","shouldCancelWhenOutside","shouldActivateOnStart","RawButton","props","needsOffscreenAlphaCompositing","BaseButton","longPressDetected","longPressTimeout","undefined","delayLongPress","onLongPress","onPress","onActiveStateChange","rest","wrappedLongPress","current","onBegin","e","pointerInside","setTimeout","onActivate","clearTimeout","onDeactivate","onFinalize","canceled","tvProps","AnimatedBaseButton","createAnimatedComponent","btnStyles","create","underlay","position","left","right","bottom","top","RectButton","children","style","activeOpacity","underlayColor","opacity","Value","active","OS","setValue","resolvedStyle","flatten","View","backgroundColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","BorderlessButton","ref","borderless","default","PureNativeButton"],"sourceRoot":"../../../../src","sources":["v3/components/GestureButtons.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AAErC,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAE7D,OAAOC,oBAAoB,MAAM,uCAAuC;AACxE,SAASC,UAAU,QAAQ,wBAAwB;AACnD,OAAOC,mBAAmB,MAAM,wBAAwB;AAOxD,SAASC,sBAAsB,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAY/D,MAAMC,cAAc,GAAGN,mBAAmB,CAGxCF,oBAAoB,EAA8C;EAClES,uBAAuB,EAAE,KAA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AI+B,MAAe,IAAK;IAC/C,IAAItD,QAAQ,CAACuD,EAAE,KAAK,KAAK,EAAE;MACzBH,OAAO,CAACI,QAAQ,CAACF,MAAM,GAAGJ,aAAa,GAAG,CAAC,CAAC;IAC9C;IAEApC,KAAK,CAACS,mBAAmB,GAAG+B,MAAM,CAAC;EACrC,CAAC;EAED,MAAM;IAAEN,QAAQ;IAAEC,KAAK;IAAEkB,GAAG;IAAE,GAAG3C;EAAK,CAAC,GAAGV,KAAK;EAE/C,oBACEP,IAAA,CAAC8B,kBAAkB;IACjB+B,UAAU;IAAA,GACN5C,IAAI;IACR2C,GAAG,EAAEA,GAAG,IAAI,IAAK;IACjB5C,mBAAmB,EAAEA,mBAAoB;IACzC0B,KAAK,EAAE,CAACA,KAAK,EAAEjD,QAAQ,CAACuD,EAAE,KAAK,KAAK,IAAI;MAAEH;IAAQ,CAAC,CAAE;IAAAJ,QAAA,EACpDA;EAAQ,CACS,CAAC;AAEzB,CAAC;AAED3C,sBAAsB,CAAC;EAAEQ,SAAS;EAAEG,UAAU;EAAE+B,UAAU;EAAEmB;AAAiB,CAAC,CAAC;AAE/E,SAASG,OAAO,IAAIC,gBAAgB,QAAQ,uCAAuC","ignoreList":[]}
|
|
@@ -6,6 +6,7 @@ import { ghQueueMicrotask } from '../../ghQueueMicrotask';
|
|
|
6
6
|
import createNativeWrapper from '../createNativeWrapper';
|
|
7
7
|
import { GestureDetectorType } from '../detectors';
|
|
8
8
|
import { NativeWrapperProps } from '../hooks/utils';
|
|
9
|
+
import { registerNativeWrappers } from '../nativeWrapperGuard';
|
|
9
10
|
import { ScrollViewResponderProvider } from './ScrollViewResponderInterceptor';
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
12
|
export const RefreshControl = createNativeWrapper(RNRefreshControl, {
|
|
@@ -40,6 +41,7 @@ export const ScrollView = props => {
|
|
|
40
41
|
};
|
|
41
42
|
return /*#__PURE__*/_jsx(ScrollViewResponderProvider, {
|
|
42
43
|
keyboardShouldPersistTaps: keyboardShouldPersistTaps,
|
|
44
|
+
disableScrollViewPanResponder: rest.disableScrollViewPanResponder,
|
|
43
45
|
children: /*#__PURE__*/_jsx(GHScrollView, {
|
|
44
46
|
...rest,
|
|
45
47
|
ref: props.ref,
|
|
@@ -129,4 +131,12 @@ export const FlatList = props => {
|
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
134
|
+
|
|
135
|
+
registerNativeWrappers({
|
|
136
|
+
ScrollView,
|
|
137
|
+
FlatList,
|
|
138
|
+
Switch,
|
|
139
|
+
TextInput,
|
|
140
|
+
RefreshControl
|
|
141
|
+
});
|
|
132
142
|
//# sourceMappingURL=GestureComponents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","FlatList","RNFlatList","RefreshControl","RNRefreshControl","ScrollView","RNScrollView","Switch","RNSwitch","TextInput","RNTextInput","ghQueueMicrotask","createNativeWrapper","GestureDetectorType","NativeWrapperProps","ScrollViewResponderProvider","jsx","_jsx","disallowInterruption","shouldCancelWhenOutside","Virtual","GHScrollView","Intercepting","props","children","refreshControl","onGestureUpdate_CAN_CAUSE_INFINITE_RERENDER","keyboardShouldPersistTaps","rest","scrollGesture","setScrollGesture","updateGesture","gesture","handlerTag","
|
|
1
|
+
{"version":3,"names":["React","useState","FlatList","RNFlatList","RefreshControl","RNRefreshControl","ScrollView","RNScrollView","Switch","RNSwitch","TextInput","RNTextInput","ghQueueMicrotask","createNativeWrapper","GestureDetectorType","NativeWrapperProps","registerNativeWrappers","ScrollViewResponderProvider","jsx","_jsx","disallowInterruption","shouldCancelWhenOutside","Virtual","GHScrollView","Intercepting","props","children","refreshControl","onGestureUpdate_CAN_CAUSE_INFINITE_RERENDER","keyboardShouldPersistTaps","rest","scrollGesture","setScrollGesture","updateGesture","gesture","handlerTag","disableScrollViewPanResponder","ref","cloneElement","block","undefined","shouldActivateOnStart","flatListProps","scrollViewProps","propName","value","Object","entries","has","renderScrollComponent","scrollProps"],"sourceRoot":"../../../../src","sources":["v3/components/GestureComponents.tsx"],"mappings":";;AACA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAQvC,SACEC,QAAQ,IAAIC,UAAU,EACtBC,cAAc,IAAIC,gBAAgB,EAClCC,UAAU,IAAIC,YAAY,EAC1BC,MAAM,IAAIC,QAAQ,EAClBC,SAAS,IAAIC,WAAW,QACnB,cAAc;AAErB,SAASC,gBAAgB,QAAQ,wBAAwB;AACzD,OAAOC,mBAAmB,MAAM,wBAAwB;AACxD,SAASC,mBAAmB,QAAQ,cAAc;AAElD,SAASC,kBAAkB,QAAQ,gBAAgB;AACnD,SAASC,sBAAsB,QAAQ,uBAAuB;AAE9D,SAASC,2BAA2B,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/E,OAAO,MAAMf,cAGZ,GAAGS,mBAAmB,CAIrBR,gBAAgB,EAChB;EACEe,oBAAoB,EAAE,IAAI;EAC1BC,uBAAuB,EAAE;AAC3B,CAAC,EACDP,mBAAmB,CAACQ,OAAO;AAC3B;AACA,KACF,CAAC;;AAED;;AAGA,MAAMC,YAAY,GAAGV,mBAAmB,CAItCN,YAAY,EACZ;EACEa,oBAAoB,EAAE,IAAI;EAC1BC,uBAAuB,EAAE;AAC3B,CAAC,EACDP,mBAAmB,CAACU,YACtB,CAAC;AAED,OAAO,MAAMlB,UAAU,GACrBmB,KACyE,IACtE;EACH,MAAM;IACJC,QAAQ;IACRC,cAAc;IACdC,2CAA2C;IAC3CC,yBAAyB;IACzB,GAAGC;EACL,CAAC,GAAGL,KAAK;EAET,MAAM,CAACM,aAAa,EAAEC,gBAAgB,CAAC,GAAG/B,QAAQ,CAChD,IACF,CAAC;EAED,MAAMgC,aAAa,GAAIC,OAAsB,IAAK;IAChDtB,gBAAgB,CAAC,MAAM;MACrB,IAAI,CAACmB,aAAa,IAAIA,aAAa,CAACI,UAAU,KAAKD,OAAO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rB,IAAI,CAACmB,aAAa,IAAIA,aAAa,CAACI,UAAU,KAAKD,OAAO,CAACC,UAAU,EAAE;QACrEH,gBAAgB,CAACE,OAAO,CAAC;QACzBN,2CAA2C,GAAGM,OAAO,CAAC;MACxD;IACF,CAAC,CAAC;EACJ,CAAC;EAED,MAAMQ,aAAa,GAAG,CAAC,CAAC;EACxB,MAAMC,eAAe,GAAG,CAAC,CAAC;EAE1B,KAAK,MAAM,CAACC,QAAQ,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACjB,IAAI,CAAC,EAAE;IACpD;IACA,IAAIf,kBAAkB,CAACiC,GAAG,CAACJ,QAAQ,CAAC,EAAE;MACpC;MACA;MACAD,eAAe,CAACC,QAAQ,CAAC,GAAGC,KAAK;IACnC,CAAC,MAAM;MACL;MACA;MACAH,aAAa,CAACE,QAAQ,CAAC,GAAGC,KAAK;IACjC;EACF;EAEA;IAAA;IACE;IACA1B,IAAA,CAAChB,UAAU;MACTkC,GAAG,EAAEA,GAAI;MAAA,GACLK,aAAa;MACjBO,qBAAqB,EAAGC,WAAW,iBACjC/B,IAAA,CAACb,UAAU;QACTsB,2CAA2C,EAAEK,aAAc;QAEzD,GAAGiB,WAAW;QACd,GAAGP;MAAe,CAErB;MAEH;MAAA;MACAhB,cAAc,EACZA,cAAc,gBACV3B,KAAK,CAACsC,YAAY,CAChBX,cAAc;MACd;MACAI,aAAa,GAAG;QAAEQ,KAAK,EAAER;MAAc,CAAC,GAAG,CAAC,CAC9C,CAAC,GACDS;IACL,CACF;EAAC;AAEN,CAKwB;;AAExB;;AAGAxB,sBAAsB,CAAC;EACrBV,UAAU;EACVJ,QAAQ;EACRM,MAAM;EACNE,SAAS;EACTN;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { FlatList as RNFlatList, ScrollView as RNScrollView, Switch as RNSwitch, TextInput as RNTextInput, View } from 'react-native';
|
|
5
5
|
import createNativeWrapper from '../createNativeWrapper';
|
|
6
6
|
import { GestureDetectorType } from '../detectors';
|
|
7
|
+
import { registerNativeWrappers } from '../nativeWrapperGuard';
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
export const ScrollView = createNativeWrapper(RNScrollView, {
|
|
9
10
|
disallowInterruption: false
|
|
@@ -29,4 +30,11 @@ export const FlatList = props => /*#__PURE__*/_jsx(RNFlatList, {
|
|
|
29
30
|
...scrollProps
|
|
30
31
|
})
|
|
31
32
|
});
|
|
33
|
+
registerNativeWrappers({
|
|
34
|
+
ScrollView,
|
|
35
|
+
FlatList,
|
|
36
|
+
Switch,
|
|
37
|
+
TextInput,
|
|
38
|
+
RefreshControl
|
|
39
|
+
});
|
|
32
40
|
//# sourceMappingURL=GestureComponents.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","FlatList","RNFlatList","ScrollView","RNScrollView","Switch","RNSwitch","TextInput","RNTextInput","View","createNativeWrapper","GestureDetectorType","jsx","_jsx","disallowInterruption","Intercepting","shouldCancelWhenOutside","shouldActivateOnStart","DrawerLayoutAndroid","console","warn","RefreshControl","props","renderScrollComponent","scrollProps"],"sourceRoot":"../../../../src","sources":["v3/components/GestureComponents.web.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SACEC,QAAQ,IAAIC,UAAU,EACtBC,UAAU,IAAIC,YAAY,EAC1BC,MAAM,IAAIC,QAAQ,EAClBC,SAAS,IAAIC,WAAW,EACxBC,IAAI,QACC,cAAc;AAErB,OAAOC,mBAAmB,MAAM,wBAAwB;AACxD,SAASC,mBAAmB,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","FlatList","RNFlatList","ScrollView","RNScrollView","Switch","RNSwitch","TextInput","RNTextInput","View","createNativeWrapper","GestureDetectorType","registerNativeWrappers","jsx","_jsx","disallowInterruption","Intercepting","shouldCancelWhenOutside","shouldActivateOnStart","DrawerLayoutAndroid","console","warn","RefreshControl","props","renderScrollComponent","scrollProps"],"sourceRoot":"../../../../src","sources":["v3/components/GestureComponents.web.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SACEC,QAAQ,IAAIC,UAAU,EACtBC,UAAU,IAAIC,YAAY,EAC1BC,MAAM,IAAIC,QAAQ,EAClBC,SAAS,IAAIC,WAAW,EACxBC,IAAI,QACC,cAAc;AAErB,OAAOC,mBAAmB,MAAM,wBAAwB;AACxD,SAASC,mBAAmB,QAAQ,cAAc;AAClD,SAASC,sBAAsB,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/D,OAAO,MAAMX,UAAU,GAAGO,mBAAmB,CAC3CN,YAAY,EACZ;EACEW,oBAAoB,EAAE;AACxB,CAAC,EACDJ,mBAAmB,CAACK,YACtB,CAAC;AAED,OAAO,MAAMX,MAAM,GAAGK,mBAAmB,CAACJ,QAAQ,EAAE;EAClDW,uBAAuB,EAAE,KAAK;EAC9BC,qBAAqB,EAAE,IAAI;EAC3BH,oBAAoB,EAAE;AACxB,CAAC,CAAC;AAEF,OAAO,MAAMR,SAAS,GAAGG,mBAAmB,CAACF,WAAW,CAAC;AAEzD,OAAO,MAAMW,mBAAmB,GAAGA,CAAA,KAAM;EACvCC,OAAO,CAACC,IAAI,CAAC,8CAA8C,CAAC;EAC5D,oBAAOP,IAAA,CAACL,IAAI,IAAE,CAAC;AACjB,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMa,cAAc,GAAGZ,mBAAmB,CAACD,IAAI,CAAC;AAEvD,OAAO,MAAMR,QAAQ,GAAYsB,KAA2B,iBAC1DT,IAAA,CAACZ,UAAU;EAAA,GACLqB,KAAK;EACTC,qBAAqB,EAAGC,WAAW,iBAAKX,IAAA,CAACX,UAAU;IAAA,GAAKsB;EAAW,CAAG;AAAE,CACzE,CACF;AAEDb,sBAAsB,CAAC;EACrBT,UAAU;EACVF,QAAQ;EACRI,MAAM;EACNE,SAAS;EACTe;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -8,6 +8,7 @@ import { pointerStyle } from './pointerStyle';
|
|
|
8
8
|
import { Touchable } from './Touchable/Touchable';
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
const IS_TEST_ENV = isTestEnv();
|
|
11
|
+
const noop = () => undefined;
|
|
11
12
|
|
|
12
13
|
// RN's Pressable default. Touchable's own default is 600ms
|
|
13
14
|
const DEFAULT_LONG_PRESS_DURATION = 500;
|
|
@@ -246,6 +247,14 @@ const PressableWithTouchable = props => {
|
|
|
246
247
|
const resolvedChildren = typeof children === 'function' ? children({
|
|
247
248
|
pressed: displayPressed
|
|
248
249
|
}) : children;
|
|
250
|
+
|
|
251
|
+
// Testing-library calls the `testOnly_*` props in place of the native press
|
|
252
|
+
// events. A disabled button never fires them, so each callback given is
|
|
253
|
+
// swapped for a no-op rather than dropped: an unset prop would let
|
|
254
|
+
// testing-library fall back to handlers further up the tree, like the ones
|
|
255
|
+
// `Touchable` gets below, and those can still run. Callbacks that weren't
|
|
256
|
+
// given stay unset, as on an enabled button.
|
|
257
|
+
const testOnlyHandler = handler => IS_TEST_ENV ? handler && disabled === true ? noop : handler : undefined;
|
|
249
258
|
return /*#__PURE__*/_jsxs(Touchable, {
|
|
250
259
|
...remainingProps,
|
|
251
260
|
ref: ref,
|
|
@@ -265,12 +274,12 @@ const PressableWithTouchable = props => {
|
|
|
265
274
|
onLongPress: handleLongPress,
|
|
266
275
|
onHoverIn: handleHoverIn,
|
|
267
276
|
onHoverOut: handleHoverOut,
|
|
268
|
-
testOnly_onPress:
|
|
269
|
-
testOnly_onPressIn:
|
|
270
|
-
testOnly_onPressOut:
|
|
271
|
-
testOnly_onLongPress:
|
|
272
|
-
testOnly_onHoverIn:
|
|
273
|
-
testOnly_onHoverOut:
|
|
277
|
+
testOnly_onPress: testOnlyHandler(onPress),
|
|
278
|
+
testOnly_onPressIn: testOnlyHandler(onPressIn),
|
|
279
|
+
testOnly_onPressOut: testOnlyHandler(onPressOut),
|
|
280
|
+
testOnly_onLongPress: testOnlyHandler(onLongPress),
|
|
281
|
+
testOnly_onHoverIn: testOnlyHandler(onHoverIn),
|
|
282
|
+
testOnly_onHoverOut: testOnlyHandler(onHoverOut),
|
|
274
283
|
children: [resolvedChildren, __DEV__ ? /*#__PURE__*/_jsx(PressabilityDebugView, {
|
|
275
284
|
color: "red",
|
|
276
285
|
hitSlop: normalizedHitSlop
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useRef","useState","addInsets","isTouchWithinInset","numberAsInset","PressabilityDebugView","isTestEnv","pointerStyle","Touchable","jsx","_jsx","jsxs","_jsxs","IS_TEST_ENV","DEFAULT_LONG_PRESS_DURATION","PRESSABLE_ANIMATION_DURATION","in","out","tap","normalizeInset","value","buttonToInner","event","identifier","locationX","x","locationY","y","pageX","absoluteX","pageY","absoluteY","target","timestamp","Date","now","touches","changedTouches","force","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","useState","addInsets","isTouchWithinInset","numberAsInset","PressabilityDebugView","isTestEnv","pointerStyle","Touchable","jsx","_jsx","jsxs","_jsxs","IS_TEST_ENV","noop","undefined","DEFAULT_LONG_PRESS_DURATION","PRESSABLE_ANIMATION_DURATION","in","out","tap","normalizeInset","value","buttonToInner","event","identifier","locationX","x","locationY","y","pageX","absoluteX","pageY","absoluteY","target","timestamp","Date","now","touches","changedTouches","force","buttonToPressableEvent","inner","nativeEvent","PressableWithTouchable","props","testOnly_pressed","hitSlop","pressRetentionOffset","delayHoverIn","delayHoverOut","delayLongPress","unstable_pressDelay","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","onLongPress","onLayout","style","children","android_disableSound","android_ripple","disabled","accessible","ref","immediatePressOut","rest","cancelable","dimensionsAfterResize","simultaneousWith","requireToFail","block","remainingProps","pressed","setPressed","timers","press","hoverIn","hoverOut","dimensions","width","height","isActive","pending","current","clearTimeout","androidRipple","color","borderless","radius","foreground","normalizedHitSlop","appliedHitSlop","resolvedDelayLongPress","handleLayout","layout","firePressIn","handlePressIn","setTimeout","handlePressOut","handlePress","handleLongPress","needsHoverIn","needsHoverOut","handleHoverIn","handleHoverOut","displayPressed","resolvedStyle","resolvedChildren","testOnlyHandler","handler","touchSoundDisabled","animationDuration","testOnly_onPress","testOnly_onPressIn","testOnly_onPressOut","testOnly_onLongPress","testOnly_onHoverIn","testOnly_onHoverOut","__DEV__"],"sourceRoot":"../../../../src","sources":["v3/components/PressableWithTouchable.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAS1D,SACEC,SAAS,EACTC,kBAAkB,EAClBC,aAAa,QACR,kCAAkC;AACzC,SAASC,qBAAqB,QAAQ,sCAAsC;AAC5E,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,SAAS,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAElD,MAAMC,WAAW,GAAGP,SAAS,CAAC,CAAC;AAC/B,MAAMQ,IAAI,GAAGA,CAAA,KAAMC,SAAS;;AAE5B;AACA,MAAMC,2BAA2B,GAAG,GAAG;AACvC;AACA;AACA;AACA,MAAMC,4BAA4B,GAAG;EAAEC,EAAE,EAAE,EAAE;EAAEC,GAAG,EAAE,GAAG;EAAEC,GAAG,EAAE;IAAEF,EAAE,EAAE;EAAI;AAAE,CAAC;AAQ3E,SAASG,cAAcA,CAACC,KAAyC,EAAU;EACzE,OAAO,OAAOA,KAAK,KAAK,QAAQ,GAC5BlB,aAAa,CAACkB,KAAK,CAAC,GACnBA,KAAK,IAAIlB,aAAa,CAAC,CAAC,CAAE;AACjC;AAEA,SAASmB,aAAaA,CAACC,KAAkB,EAAuB;EAC9D,OAAO;I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|
63
63
|
// https://github.com/software-mansion/react-native-gesture-handler/pull/4158#issuecomment-4431632964
|
|
64
64
|
export const ScrollViewResponderProvider = ({
|
|
65
65
|
children,
|
|
66
|
-
keyboardShouldPersistTaps
|
|
66
|
+
keyboardShouldPersistTaps,
|
|
67
|
+
disableScrollViewPanResponder
|
|
67
68
|
}) => {
|
|
68
69
|
const isRNGHResponderEvent = useRef(false);
|
|
69
70
|
const claimedForKeyboardDismissal = useRef(false);
|
|
71
|
+
const isTouching = useRef(false);
|
|
72
|
+
const observedScrollSinceBecomingResponder = useRef(false);
|
|
70
73
|
const contextValue = useMemo(() => ({
|
|
71
74
|
isRNGHResponderEvent,
|
|
72
75
|
keyboardShouldPersistTaps
|
|
@@ -80,6 +83,7 @@ export const ScrollViewResponderProvider = ({
|
|
|
80
83
|
return false;
|
|
81
84
|
}, []);
|
|
82
85
|
const handleStartShouldSetResponder = useCallback(event => {
|
|
86
|
+
observedScrollSinceBecomingResponder.current = false;
|
|
83
87
|
if (isRNGHResponderEvent.current) {
|
|
84
88
|
// Claim marked events so outer keyboard-dismissing responders can't —
|
|
85
89
|
// release does nothing and the keyboard stays open.
|
|
@@ -94,7 +98,34 @@ export const ScrollViewResponderProvider = ({
|
|
|
94
98
|
claimedForKeyboardDismissal.current = shouldClaim;
|
|
95
99
|
return shouldClaim;
|
|
96
100
|
}, []);
|
|
101
|
+
|
|
102
|
+
// `disableScrollViewPanResponder` also drops RN's scroll claim, which is what
|
|
103
|
+
// terminates a child's press once the list scrolls (#4677). Mirrored here,
|
|
104
|
+
// touch-gated like RN's `_isTouching` so momentum scrolls can't claim.
|
|
105
|
+
const handleTouchStart = useCallback(() => {
|
|
106
|
+
isTouching.current = true;
|
|
107
|
+
}, []);
|
|
108
|
+
const handleTouchEnd = useCallback(event => {
|
|
109
|
+
isTouching.current = event.nativeEvent.touches.length !== 0;
|
|
110
|
+
}, []);
|
|
111
|
+
const handleTouchCancel = useCallback(() => {
|
|
112
|
+
isTouching.current = false;
|
|
113
|
+
}, []);
|
|
114
|
+
|
|
115
|
+
// `topScroll` is a direct event, so this claim is the only scroll signal
|
|
116
|
+
// the wrapper gets — it doubles as RN's `_observedScrollSinceBecomingResponder`.
|
|
117
|
+
const handleScrollShouldSetResponder = useCallback(() => {
|
|
118
|
+
if (!isTouching.current) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
observedScrollSinceBecomingResponder.current = true;
|
|
122
|
+
return true;
|
|
123
|
+
}, []);
|
|
124
|
+
|
|
125
|
+
// Like RN: once the list moved, don't hand the touch to an ancestor.
|
|
126
|
+
const handleResponderTerminationRequest = useCallback(() => !observedScrollSinceBecomingResponder.current, []);
|
|
97
127
|
const handleResponderRelease = useCallback(event => {
|
|
128
|
+
observedScrollSinceBecomingResponder.current = false;
|
|
98
129
|
if (!claimedForKeyboardDismissal.current) {
|
|
99
130
|
return;
|
|
100
131
|
}
|
|
@@ -109,8 +140,16 @@ export const ScrollViewResponderProvider = ({
|
|
|
109
140
|
// `_observedScrollSinceBecomingResponder` guard by skipping the dismissal.
|
|
110
141
|
const handleResponderTerminate = useCallback(() => {
|
|
111
142
|
claimedForKeyboardDismissal.current = false;
|
|
143
|
+
observedScrollSinceBecomingResponder.current = false;
|
|
112
144
|
}, []);
|
|
113
145
|
const isHandledMode = keyboardShouldPersistTaps === 'handled';
|
|
146
|
+
// A caller opting out of RN's pan responder keeps that opt-out here too.
|
|
147
|
+
const claimsOnScroll = isHandledMode && disableScrollViewPanResponder !== true;
|
|
148
|
+
|
|
149
|
+
// Works on any host view but is missing from RN's `ViewProps` type.
|
|
150
|
+
const scrollProps = claimsOnScroll ? {
|
|
151
|
+
onScrollShouldSetResponder: handleScrollShouldSetResponder
|
|
152
|
+
} : undefined;
|
|
114
153
|
return /*#__PURE__*/_jsx(JSResponderContext, {
|
|
115
154
|
value: contextValue,
|
|
116
155
|
children: /*#__PURE__*/_jsx(View, {
|
|
@@ -119,6 +158,11 @@ export const ScrollViewResponderProvider = ({
|
|
|
119
158
|
style: styles.logicalResponder,
|
|
120
159
|
onStartShouldSetResponderCapture: isHandledMode ? resetRNGHResponderEvent : undefined,
|
|
121
160
|
onStartShouldSetResponder: isHandledMode ? handleStartShouldSetResponder : undefined,
|
|
161
|
+
onTouchStart: claimsOnScroll ? handleTouchStart : undefined,
|
|
162
|
+
onTouchEnd: claimsOnScroll ? handleTouchEnd : undefined,
|
|
163
|
+
onTouchCancel: claimsOnScroll ? handleTouchCancel : undefined,
|
|
164
|
+
...scrollProps,
|
|
165
|
+
onResponderTerminationRequest: claimsOnScroll ? handleResponderTerminationRequest : undefined,
|
|
122
166
|
onResponderRelease: isHandledMode ? handleResponderRelease : undefined,
|
|
123
167
|
onResponderTerminate: isHandledMode ? handleResponderTerminate : undefined,
|
|
124
168
|
children: children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useEffect","useMemo","useRef","Keyboard","Platform","StyleSheet","TextInput","View","JSResponderContext","setKeyboardVisibility","jsx","_jsx","keyboardTrackerRefCount","keyboardTrackerSubscriptions","keyboardIsOpen","height","subscribeToKeyboardVisibility","addListener","setVisible","event","endCoordinates","setHidden","metrics","unsubscribeFromKeyboardVisibility","subscription","remove","keyboardIsDismissible","currentlyFocusedInput","State","softKeyboardMayBeOpen","OS","Number","Version","softKeyboardIsDetached","ScrollViewResponderProvider","children","keyboardShouldPersistTaps","isRNGHResponderEvent","claimedForKeyboardDismissal","contextValue","resetRNGHResponderEvent","current","handleStartShouldSetResponder","shouldClaim","target","handleResponderRelease","blurTextInput","handleResponderTerminate","isHandledMode","value","collapsable","pointerEvents","style","styles","logicalResponder","onStartShouldSetResponderCapture","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useEffect","useMemo","useRef","Keyboard","Platform","StyleSheet","TextInput","View","JSResponderContext","setKeyboardVisibility","jsx","_jsx","keyboardTrackerRefCount","keyboardTrackerSubscriptions","keyboardIsOpen","height","subscribeToKeyboardVisibility","addListener","setVisible","event","endCoordinates","setHidden","metrics","unsubscribeFromKeyboardVisibility","subscription","remove","keyboardIsDismissible","currentlyFocusedInput","State","softKeyboardMayBeOpen","OS","Number","Version","softKeyboardIsDetached","ScrollViewResponderProvider","children","keyboardShouldPersistTaps","disableScrollViewPanResponder","isRNGHResponderEvent","claimedForKeyboardDismissal","isTouching","observedScrollSinceBecomingResponder","contextValue","resetRNGHResponderEvent","current","handleStartShouldSetResponder","shouldClaim","target","handleTouchStart","handleTouchEnd","nativeEvent","touches","length","handleTouchCancel","handleScrollShouldSetResponder","handleResponderTerminationRequest","handleResponderRelease","blurTextInput","handleResponderTerminate","isHandledMode","claimsOnScroll","scrollProps","onScrollShouldSetResponder","undefined","value","collapsable","pointerEvents","style","styles","logicalResponder","onStartShouldSetResponderCapture","onStartShouldSetResponder","onTouchStart","onTouchEnd","onTouchCancel","onResponderTerminationRequest","onResponderRelease","onResponderTerminate","create","display"],"sourceRoot":"../../../../src","sources":["v3/components/ScrollViewResponderInterceptor.tsx"],"mappings":";;AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAQtE,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,SAAS,EAAEC,IAAI,QAAQ,cAAc;AAE9E,SACEC,kBAAkB,EAClBC,qBAAqB,QAChB,sBAAsB;;AAE7B;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,IAAIC,uBAAuB,GAAG,CAAC;AAC/B,IAAIC,4BAAmD,GAAG,EAAE;AAE5D,SAASC,cAAcA,CAACC,MAA0B,EAAW;EAC3D,OAAOA,MAAM,IAAI,IAAI,IAAIA,MAAM,GAAG,CAAC;AACrC;AAEA,SAASC,6BAA6BA,CAAA,EAAG;EACvCJ,uBAAuB,EAAE;EAEzB,IAAIA,uBAAuB,GAAG,CAAC,IAAIT,QAAQ,EAAEc,WAAW,IAAI,IAAI,EAAE;IAChE;EACF;EAEA,MAAMC,UAAU,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