# How do I make a button that acts like a back button in the stack navigator?

**URL:** <https://community.thunkable.com/t/how-do-i-make-a-button-that-acts-like-a-back-button-in-the-stack-navigator/434939>\
**Category:** Questions about Thunkable X\
**Created:** [January 30, 2020, 3:04am UTC](https://community.thunkable.com/t/how-do-i-make-a-button-that-acts-like-a-back-button-in-the-stack-navigator/434939 "2020-01-30T03:04:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [January 30, 2020, 3:04am UTC](https://community.thunkable.com/t/how-do-i-make-a-button-that-acts-like-a-back-button-in-the-stack-navigator/434939/1 "2020-01-30T03:04:48Z")

</div>

I created a Stack navigator and made HeaderMode none. And I created the back button myself. This was different from the back button that was automatically generated when HeaderMode was screen. I want to create a back button that is created automatically. This goes back to closing the screen and showing the screen below. This redisplays the original screen without updating it. How do I make my back button work the same way?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 28, 2020, 9:31am UTC](https://community.thunkable.com/t/how-do-i-make-a-button-that-acts-like-a-back-button-in-the-stack-navigator/434939/2 "2020-02-28T09:31:49Z")

</div>

You can use an app variable for this @mom7667yafy

If you store the Screen that you’ve just come from, when you click the back button you can go back to that Screen.

Two follow up questions:

1. Do you have a “sitemap” for your app, showing what screens are connected to one another?

2. How many screens are in your custom navigator?

---

<div class="post-metadata">

**Author:** ![Garry\_Lane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/garry_lane/32/58057_2.png) [@Garry\_Lane](https://community.thunkable.com/u/Garry_Lane)\
**Post date:** [May 7, 2020, 3:42am UTC](https://community.thunkable.com/t/how-do-i-make-a-button-that-acts-like-a-back-button-in-the-stack-navigator/434939/3 "2020-05-07T03:42:52Z")

</div>

How would you store the screen and how would it be called back?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:29am UTC](https://community.thunkable.com/t/how-do-i-make-a-button-that-acts-like-a-back-button-in-the-stack-navigator/434939/4 "2024-11-08T11:29:25Z")

</div>


