Skip to content

Commit

Permalink
Fix passing props to gestureHandlerRootHOC.js (#944)
Browse files Browse the repository at this point in the history
fixes: #942

regression after: cc5e348
  • Loading branch information
osdnk committed Feb 3, 2020
1 parent 1916915 commit 5bb191b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gestureHandlerRootHOC.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export default function gestureHandlerRootHOC(
Component,
containerStyles = undefined
) {
function Wrapper() {
function Wrapper(props) {
return (
<GestureHandlerRootView style={[styles.container, containerStyles]}>
<Component {...this.props} />
<Component {...props} />
</GestureHandlerRootView>
);
}
Expand Down

0 comments on commit 5bb191b

Please sign in to comment.