Tlaster / PreCompose

Compose Multiplatform Navigation && State Management

Home Page:https://tlaster.github.io/PreCompose/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: How do I disable backpress on specific screen?

ronjunevaldoz opened this issue · comments

I'm not sure how do I disable back press using the library. I've seen the BackHandler but not sure how do I used it here. Tried to use PopUpTo.

navigator.navigate(
     it.route,
    NavOptions(  popUpTo = PopUpTo(it.route, true))
)

BackHandler is the same as the Jetpack's BackHandler, you can check out the doc from jetpack

Close as inactive.