Skip to content

Commit 5bb191b

Browse files
authoredFeb 3, 2020
Fix passing props to gestureHandlerRootHOC.js (software-mansion#944)
fixes: software-mansion#942 regression after: cc5e348
1 parent 1916915 commit 5bb191b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎gestureHandlerRootHOC.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ export default function gestureHandlerRootHOC(
77
Component,
88
containerStyles = undefined
99
) {
10-
function Wrapper() {
10+
function Wrapper(props) {
1111
return (
1212
<GestureHandlerRootView style={[styles.container, containerStyles]}>
13-
<Component {...this.props} />
13+
<Component {...props} />
1414
</GestureHandlerRootView>
1515
);
1616
}

0 commit comments

Comments
 (0)