AppState#addEventListener()

addEventListener(type, handler)

Add a handler to AppState changes by listening to the change event type and providing the handler

TODO: now that AppState is a subclass of NativeEventEmitter, we could deprecate addEventListener and removeEventListener and just use addListener and listener.remove() directly. That will be a breaking change though, as both the method and event names are different (addListener events are currently required to be globally unique).

doc_React_Native
2016-06-23 04:23:38
Comments
Leave a Comment

Please login to continue.