I know that we can use setPopUpTo() with destinationId Like this:
setPopUpTo()
destinationId
NavOptions.Builder()