From bf751a9d55def3868745640f238c0f68069f8a81 Mon Sep 17 00:00:00 2001 From: u-e Date: Mon, 11 Mar 2019 22:48:37 +0300 Subject: [PATCH] net info temporarily disabled --- src/screens/application/container/applicationContainer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/screens/application/container/applicationContainer.js b/src/screens/application/container/applicationContainer.js index 665536a6e..de686332b 100644 --- a/src/screens/application/container/applicationContainer.js +++ b/src/screens/application/container/applicationContainer.js @@ -92,7 +92,7 @@ class ApplicationContainer extends Component { isConnected = _isConnected; }); - NetInfo.isConnected.addEventListener('connectionChange', this._handleConntectionChange); + // NetInfo.isConnected.addEventListener('connectionChange', this._handleConntectionChange); if (!isIos) BackHandler.addEventListener('hardwareBackPress', this._onBackPress); if (isConnected) { @@ -127,7 +127,7 @@ class ApplicationContainer extends Component { if (!isIos) BackHandler.removeEventListener('hardwareBackPress', this._onBackPress); - NetInfo.isConnected.removeEventListener('connectionChange', this._handleConntectionChange); + // NetInfo.isConnected.removeEventListener('connectionChange', this._handleConntectionChange); clearInterval(this.globalInterval); } @@ -145,8 +145,8 @@ class ApplicationContainer extends Component { } // TODO: solve this work arround - NetInfo.isConnected.removeEventListener('connectionChange', this._handleConntectionChange); - NetInfo.isConnected.addEventListener('connectionChange', this._handleConntectionChange); + // NetInfo.isConnected.removeEventListener('connectionChange', this._handleConntectionChange); + // NetInfo.isConnected.addEventListener('connectionChange', this._handleConntectionChange); }; _onBackPress = () => {