Hide status bar on visible->hidden transition

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-01-01 21:15:26 +00:00
parent fa14bc9b8d
commit 875eb3d34f
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -169,8 +169,10 @@ module.exports = React.createClass({
// Check whether current size is greater than 0, if yes call props.onVisible // Check whether current size is greater than 0, if yes call props.onVisible
_checkSize: function() { _checkSize: function() {
if (this.props.onVisible && this._getSize()) { if (this._getSize()) {
this.props.onVisible(); if (this.props.onVisible) this.props.onVisible();
} else {
if (this.props.onHidden) this.props.onHidden();
} }
}, },