Page MenuHomePhabricator

D5386.id17633.diff
No OneTemporary

D5386.id17633.diff

diff --git a/native/lifecycle/lifecycle.js b/native/lifecycle/lifecycle.js
--- a/native/lifecycle/lifecycle.js
+++ b/native/lifecycle/lifecycle.js
@@ -14,12 +14,7 @@
return getLifecycleEventEmitter().addLifecycleListener(listener);
}
- NativeAppState.addEventListener('change', listener);
- return {
- remove: () => {
- NativeAppState.removeEventListener('change', listener);
- },
- };
+ return NativeAppState.addEventListener('change', listener);
}
function getCurrentLifecycleState(): ?string {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 7:37 PM (18 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2499619
Default Alt Text
D5386.id17633.diff (527 B)

Event Timeline