MCPcopy Create free account
hub / github.com/archriss/react-native-network-component / componentWillUnmount

Method componentWillUnmount

index.js:32–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 }
31
32 componentWillUnmount () {
33 if (this.options.handleAppState) {
34 AppState.removeEventListener('change', this.handleState);
35 }
36 NetInfo.removeEventListener('connectionChange', this._onNetworkChange);
37 }
38
39 get resumeDelayElapsed () {
40 return this._inactiveTime + this.options.onResumeDelay <= Date.now();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected