Skip to content

Commit

Permalink
Update RNMBXMapView.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
mysport12 committed Feb 15, 2025
1 parent 5369352 commit d1c9c98
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import android.widget.FrameLayout
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LifecycleRegistry
import androidx.lifecycle.ViewTreeLifecycleOwner
import androidx.lifecycle.setViewTreeLifecycleOwner
import com.facebook.react.bridge.*
import com.mapbox.android.gestures.*
import com.mapbox.bindgen.Value
Expand Down Expand Up @@ -131,11 +131,10 @@ class RNMBXLifeCycle {
}
}

override fun getLifecycle(): Lifecycle {
return lifecycleRegistry
}
override val lifecycle: Lifecycle
get() = lifecycleRegistry
}
ViewTreeLifecycleOwner.set(view, lifecycleOwner);
view.setViewTreeLifecycleOwner(lifecycleOwner);
}
lifecycleOwner?.handleLifecycleEvent(Lifecycle.Event.ON_START)
}
Expand Down

0 comments on commit d1c9c98

Please sign in to comment.