Skip to content

Commit cf8e911

Browse files
committed
EXTREMELY MAJOR FIX!
This fixes the ability to configure interactions with NativeViewGestureHandler. _handlerTag property was not set on NativeViewWrapper. This is crucial for the configuration to occur because it is used to filter refs out from the refs that are passed to `waitFor` | `simultaneousHandlers`. see `transformIntoHandlerTags` method in createHandler.js
1 parent 79cb88e commit cf8e911

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

createNativeWrapper.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ export default function createNativeWrapper(Component, config = {}) {
6464
}
6565
};
6666

67+
_gestureRefHandler = node => {
68+
this._handlerTag = node ? node._handlerTag : null;
69+
}
70+
6771
render() {
6872
// filter out props that should be passed to gesture handler wrapper
6973
const gestureHandlerProps = Object.keys(this.props).reduce(
@@ -76,7 +80,7 @@ export default function createNativeWrapper(Component, config = {}) {
7680
{ ...config } // watch out not to modify config
7781
);
7882
return (
79-
<NativeViewGestureHandler {...gestureHandlerProps}>
83+
<NativeViewGestureHandler {...gestureHandlerProps} ref={this._gestureRefHandler}>
8084
<Component {...this.props} ref={this._refHandler} />
8185
</NativeViewGestureHandler>
8286
);

0 commit comments

Comments
 (0)