Skip to content

Commit

Permalink
[React Native][Pokes Dashboard] Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliot Lynde committed Jul 18, 2015
1 parent c28d33f commit 4a262e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/Components/Touchable/TouchableHighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ var TouchableHighlight = React.createClass({
},

_showUnderlay: function() {
if (!this.isMounted()) {
return;
}

this.refs[UNDERLAY_REF].setNativeProps(this.state.activeUnderlayProps);
this.refs[CHILD_REF].setNativeProps(this.state.activeProps);
this.props.onShowUnderlay && this.props.onShowUnderlay();
Expand Down

0 comments on commit 4a262e0

Please sign in to comment.