Guard onStatusBarVisible/Hidden with this.unmounted
This commit is contained in:
parent
f06de1f129
commit
9c99dafba5
1 changed files with 2 additions and 0 deletions
|
@ -1332,12 +1332,14 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onStatusBarVisible: function() {
|
onStatusBarVisible: function() {
|
||||||
|
if (this.unmounted) return;
|
||||||
this.setState({
|
this.setState({
|
||||||
statusBarVisible: true,
|
statusBarVisible: true,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onStatusBarHidden: function() {
|
onStatusBarHidden: function() {
|
||||||
|
if (this.unmounted) return;
|
||||||
this.setState({
|
this.setState({
|
||||||
statusBarVisible: false,
|
statusBarVisible: false,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue