net info temporarily disabled

This commit is contained in:
u-e 2019-03-11 22:48:37 +03:00
parent 491bcd4fcd
commit bf751a9d55

View File

@ -92,7 +92,7 @@ class ApplicationContainer extends Component {
isConnected = _isConnected; isConnected = _isConnected;
}); });
NetInfo.isConnected.addEventListener('connectionChange', this._handleConntectionChange); // NetInfo.isConnected.addEventListener('connectionChange', this._handleConntectionChange);
if (!isIos) BackHandler.addEventListener('hardwareBackPress', this._onBackPress); if (!isIos) BackHandler.addEventListener('hardwareBackPress', this._onBackPress);
if (isConnected) { if (isConnected) {
@ -127,7 +127,7 @@ class ApplicationContainer extends Component {
if (!isIos) BackHandler.removeEventListener('hardwareBackPress', this._onBackPress); if (!isIos) BackHandler.removeEventListener('hardwareBackPress', this._onBackPress);
NetInfo.isConnected.removeEventListener('connectionChange', this._handleConntectionChange); // NetInfo.isConnected.removeEventListener('connectionChange', this._handleConntectionChange);
clearInterval(this.globalInterval); clearInterval(this.globalInterval);
} }
@ -145,8 +145,8 @@ class ApplicationContainer extends Component {
} }
// TODO: solve this work arround // TODO: solve this work arround
NetInfo.isConnected.removeEventListener('connectionChange', this._handleConntectionChange); // NetInfo.isConnected.removeEventListener('connectionChange', this._handleConntectionChange);
NetInfo.isConnected.addEventListener('connectionChange', this._handleConntectionChange); // NetInfo.isConnected.addEventListener('connectionChange', this._handleConntectionChange);
}; };
_onBackPress = () => { _onBackPress = () => {