mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
net info temporarily disabled
This commit is contained in:
parent
491bcd4fcd
commit
bf751a9d55
@ -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 = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user