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

[Request] Get current state #108

Open
braco opened this issue May 11, 2017 · 3 comments
Open

[Request] Get current state #108

braco opened this issue May 11, 2017 · 3 comments

Comments

@braco
Copy link

braco commented May 11, 2017

It would be helpful to have something like

Navigator.status()

to retrieve the current Navigation state

Also, is there currently a way to retrieve the initial Route when reloading? It doesn't seem like onAppear/onEnterTransitionComplete events are fired. Don't know if that's a bug or by design.

@benkraus
Copy link
Contributor

benkraus commented Jun 1, 2017

I don't quite follow what you are asking? What do you mean by the current navigation state?

@braco
Copy link
Author

braco commented Jun 1, 2017

Navigation stack and/or the current topmost component. The original reason I asked was to keep nav state visible on a toolbar. I guess since there are differentiations made in the type of component (presentation vs push), it would ideally represent that in the object. Maybe something like this?:

screen = { name, component, modals }
stack = [screen, screen, ...]

@pewh
Copy link

pewh commented Jul 30, 2017

+1

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

3 participants