How to get current path info? #62
Unanswered
elliotwaite
asked this question in
Q&A
Replies: 1 comment 4 replies
-
yeah that's still the case. since I consider this a dangerous implementation I haven't wanted to add it to solito. if you want, you can see this PR / discussion for how you could do it yourself though: #45 I would decouple it from I do think it's an issue to open with React Navigation though. I'd like an official API from them. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a left navigation menu of links and I want to highlight the link that corresponds with the current path. Is there a way to access the current path info? Or is there a better way to accomplish what I'm trying to do?
I saw this was already discussed a bit here: #10, where the idea of a
useAsPath()
hook was mentioned, but I wasn't sure how it could be implemented (perhaps someone could point me in the right direction). @nandorojo also mentioned that this may be an underlying issue with React Native, and perhaps this issue should be opened with them. Is that still the case?Beta Was this translation helpful? Give feedback.
All reactions