esoftplay 0.0.129-m → 0.0.129-n

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ class net_status extends LibComponent<LibNet_statusProps, LibNet_statusState> {
39
39
  componentDidMount(): void {
40
40
  super.componentDidMount()
41
41
  this.unsubscribe = NetInfo.addEventListener(state => {
42
- this.onChangeConnectivityStatus(!!state.isConnected, state.isInternetReachable)
42
+ this.onChangeConnectivityStatus(!!state.isConnected, !!state.isInternetReachable)
43
43
  });
44
44
  }
45
45
 
@@ -52,12 +52,15 @@ class net_status extends LibComponent<LibNet_statusProps, LibNet_statusState> {
52
52
  let isOnline = isConnected && isInternetReachable
53
53
  net_status.setOnline(isConnected, isInternetReachable)
54
54
  if (isOnline) {
55
+ clearTimeout(this.timeout)
55
56
  this.timeout = setTimeout(() => {
56
57
  this.setState({ zeroHeight: 1 })
57
58
  }, 1500)
58
59
  } else {
59
- this.setState({ zeroHeight: 2 })
60
60
  clearTimeout(this.timeout)
61
+ this.timeout = setTimeout(() => {
62
+ this.setState({ zeroHeight: 2 })
63
+ }, 600)
61
64
  }
62
65
  }
63
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.129-m",
3
+ "version": "0.0.129-n",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",