Navigate back within the same app


is there a way to create a button that navigates back to the last page within the same app?
I've seen this solution but it is not really what I need. I implemented it, and it takes me out of my app instead of navigating back to the last page within my app.

If by "going back inside of the same app" you mean you're app is using a tabbed container and you want to navigate back to the tab the user was on, then this can be done through creating an array in a JS variable where you treat is as a stack.

You will be adding tabs into the array onClick for each of the navigation items. while onClick on the back button you will be using "pop()" to get the last item of your navigation stack.

Let me know if you have any questions!

Thank you! I will try it and let you know if I have any troubles.

1 Like