Hello does anyone know how to handle life cycle i...
# decompose
d
Hello does anyone know how to handle life cycle in ios eg. lifecycle.subscribe( object : Lifecycle.Callbacks { override fun onCreate() { /* Component created */ } // onStart, onResume, onPause, onStop, onDestroy } ) , ios is not reacting to lifecycle events such as onresume in decompose , kindly assist
There are
doOnXyz
extension sfor convenience
d
Thanks Arkadii how can i monitor both ios and android lifecycle at the same time since their implementations seems to be different
a
You have the Lifecycle in the common code, call doOnCreate/doOnResume/etc.
Then you should setup your root component as described in the doc.
d
Alright thanks Arkadii
👍 1