# Stack Navigator

{% embed url="<https://youtu.be/Z9R_kg4ew2M>" %}

{% hint style="warning" %}
Navigators are the only component that you cannot drag and drop into your phone at the moment. You'll have to drag it left to the tree hierarchy. Make sure that screens are fully contained within your navigator.
{% endhint %}

![](/files/-LB2bVTl1dkWWU7uUQkT)

![](/files/-LB2bO8jUdRfcK8n_R8a)

## Name Your Screens

The Stack navigator creates a header bar across all screens. You can add a title to this bar by navigating to the Screen properties

| Property          | Description                                                                           |
| ----------------- | ------------------------------------------------------------------------------------- |
| Header Title      | Title of your header                                                                  |
| Header Back Title | Title of the back button on a stacked screen; if `blank`, will use the `Header Title` |

## Stack Navigator Properties

### Set Your Screen Transitions

To enable a Stack transition, you will have to add a Screen navigation block like the one below. You can find the Screen navigation block in the pre-built Control category:

![](/files/-MWYgxZKV1658PjyqXWP)

Screens can Stack from left to right or from top to bottom. You can set the transition style with the Stack property below:

| Property | Description                                                                                                     |
| -------- | --------------------------------------------------------------------------------------------------------------- |
| Mode     | Default (`card`); `Card` mode stacks screens from left to right while `modal` stacks screens from top to bottom |

{% hint style="warning" %}
It is not possible to use blocks to navigate from a screen **outside** of your Stack Navigator to a screen **inside** your Stack Navigator
{% endhint %}

### Hide Your Header

It is possible to hide the Header bar and maintain the Stacking transition by using the Stack property below. Hiding the Header bar will also hide the back button that makes it easier to transition to your original screen

| Property    | Description                                                       |
| ----------- | ----------------------------------------------------------------- |
| Header Mode | Default (`Screen`); If you want to hide the header, set to `none` |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thunkable.com/snap-to-place/stack-navigator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
