-
-
Save BlueBazze/f371f26f21fefdbf1a9251038d727fe1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val reactContext: ReactContext | |
get() = context as ReactContext | |
// Calling during init of the view | |
reactContext.addLifecycleEventListener(object : LifecycleEventListener { | |
override fun onHostResume() { | |
} | |
override fun onHostPause() { | |
} | |
override fun onHostDestroy() { | |
reactContext.removeLifecycleEventListener(this) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment