From 4a262e0f2b0f5e428d0599dc3c6525ebe14a877c Mon Sep 17 00:00:00 2001 From: Elliot Lynde Date: Fri, 17 Jul 2015 16:47:36 -0700 Subject: [PATCH] [React Native][Pokes Dashboard] Fix crash --- Libraries/Components/Touchable/TouchableHighlight.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/Components/Touchable/TouchableHighlight.js b/Libraries/Components/Touchable/TouchableHighlight.js index dcbfbeee19..47d24b8117 100644 --- a/Libraries/Components/Touchable/TouchableHighlight.js +++ b/Libraries/Components/Touchable/TouchableHighlight.js @@ -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();