Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to route "back" #58

Open
lukejacksonn opened this issue Jan 16, 2025 · 2 comments
Open

Ability to route "back" #58

lukejacksonn opened this issue Jan 16, 2025 · 2 comments

Comments

@lukejacksonn
Copy link

I've rolled my own router for a while but would like to move to using this package. I went to migrate one of my existing apps and realised that I use router.back() quite prolifically in the app with my hand rolled router implementation.

Do you ever plan to support this operation at all?

If so that is great and I could even look at adding this functionality via a PR.. it might be also be worth including a canGoBack field like in expo router which detects whether there is a previous route in the navigation history stack.

@rschristian
Copy link
Member

rschristian commented Jan 16, 2025

I don't think it's on our todo lists but would be happy to see it supported if you did want to give it a shot!

I'm not against a canGoBack though I'm not quite sure it'd fit into the current API well. Guess it can just go on the route location context if need be.

@lukejacksonn
Copy link
Author

Ok great, I will take a look at the source code and have a go at implementing just the back functionality first!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants