[React Native][Pokes Dashboard] Fix crash
This commit is contained in:
Родитель
c28d33f3a2
Коммит
4a262e0f2b
|
@ -181,6 +181,10 @@ var TouchableHighlight = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
_showUnderlay: function() {
|
_showUnderlay: function() {
|
||||||
|
if (!this.isMounted()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.refs[UNDERLAY_REF].setNativeProps(this.state.activeUnderlayProps);
|
this.refs[UNDERLAY_REF].setNativeProps(this.state.activeUnderlayProps);
|
||||||
this.refs[CHILD_REF].setNativeProps(this.state.activeProps);
|
this.refs[CHILD_REF].setNativeProps(this.state.activeProps);
|
||||||
this.props.onShowUnderlay && this.props.onShowUnderlay();
|
this.props.onShowUnderlay && this.props.onShowUnderlay();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче