Skip to content

Commit

Permalink
fix forwarding ref of ThouchableOpacity
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanshar committed Dec 23, 2019
1 parent b9135b1 commit 73dd71c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/touchableOpacity/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class TouchableOpacity extends PureComponent {
}

render() {
const {style, modifiers, ...others} = this.props;
const {style, modifiers, forwardedRef, ...others} = this.props;
const {borderRadius, paddings, margins, alignments, flexStyle} = modifiers;

return (
Expand All @@ -110,7 +110,7 @@ class TouchableOpacity extends PureComponent {
style,
this.activeBackgroundStyle
]}
ref={this.setRef}
ref={forwardedRef}
/>
);
}
Expand Down

0 comments on commit 73dd71c

Please sign in to comment.