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

Scene Registry #64

Closed
mschipperheyn opened this issue Apr 12, 2016 · 4 comments
Closed

Scene Registry #64

mschipperheyn opened this issue Apr 12, 2016 · 4 comments

Comments

@mschipperheyn
Copy link

Ive been looking in the documentation for some kind of Route/Scene Registry component.
It would be a component that holds all the known Screens (Home, Registration, etc), a function to retrieve the Screen component lazily, a way to parse a route path (as opposed to a key): (account/profile, account/shoppingcart, account/user/{id}). I havent found it yet in the documentation. Is that something that is part of the concept?

@ericvicenti
Copy link
Owner

Right now this is left up to the app developer. It would be great to see the community contribute additional modules to handle the remaining pieces:

  • Utility to map from URIs to actions
  • Factory that creates a reducer to go from actions to nav state, and a mapping function that can go from a child state to a scene view
  • Higher level view that utilizes the state-view map to render all of the scenes

@mschipperheyn
Copy link
Author

Im in the process of whipping something up. Ill release it when its ready.

@jmurzy
Copy link

jmurzy commented May 25, 2016

@mschipperheyn I've been working on a project, react-router-native, that might pique your interest. Any feedback would be greatly appreciated.

@mschipperheyn
Copy link
Author

@jmurzy Looks cool and in line with what I've been doing myself.

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