diff --git a/Libraries/AppState/AppState.js b/Libraries/AppState/AppState.js index 89459dd4104562..4c091c00e8d7e4 100644 --- a/Libraries/AppState/AppState.js +++ b/Libraries/AppState/AppState.js @@ -154,7 +154,7 @@ class AppState { case 'focus': // $FlowIssue[invalid-tuple-arity] Flow cannot refine handler based on the event type // $FlowIssue[incompatible-call] - emitter.addListener('appStateFocusChange', listener); + emitter.removeListener('appStateFocusChange', listener); return; } throw new Error('Trying to unsubscribe from unknown event: ' + type);