[React Native][Pokes Dashboard] Fix crash

This commit is contained in:
Elliot Lynde 2015-07-17 16:47:36 -07:00
Родитель c28d33f3a2
Коммит 4a262e0f2b
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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();