File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
packages/react-native-gesture-handler/src/v3 Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,10 @@ export interface GestureHandlerDetectorProps {
7
7
dispatchesAnimatedEvents : boolean ;
8
8
moduleId : number ;
9
9
children ?: React . ReactNode ;
10
- actionType ?: ActionType ;
11
10
}
12
11
13
12
const HostGestureDetector = ( props : GestureHandlerDetectorProps ) => {
14
- const {
15
- handlerTags,
16
- children,
17
- actionType = ActionType . NATIVE_DETECTOR ,
18
- } = props ;
13
+ const { handlerTags, dispatchesAnimatedEvents, children } = props ;
19
14
20
15
const viewRef = useRef ( null ) ;
21
16
const propsRef = useRef < GestureHandlerDetectorProps > ( props ) ;
@@ -30,7 +25,9 @@ const HostGestureDetector = (props: GestureHandlerDetectorProps) => {
30
25
RNGestureHandlerModule . attachGestureHandler (
31
26
tag ,
32
27
viewRef . current ,
33
- actionType ,
28
+ dispatchesAnimatedEvents
29
+ ? ActionType . NATIVE_DETECTOR_ANIMATED_EVENT
30
+ : ActionType . NATIVE_DETECTOR ,
34
31
propsRef
35
32
) ;
36
33
} ) ;
You can’t perform that action at this time.
0 commit comments