Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3254277
D5386.id17633.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
527 B
Referenced Files
None
Subscribers
None
D5386.id17633.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5386: [native] Fix `removeEventListener` deprecation warn
Attached
Detach File
Event Timeline
Log In to Comment