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

Add the friendly navigation setup code from frets-starter #13

Open
sirtimbly opened this issue Feb 4, 2019 · 0 comments
Open

Add the friendly navigation setup code from frets-starter #13

sirtimbly opened this issue Feb 4, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@sirtimbly
Copy link
Owner

The way of adding top level screens as a list to the props and the actions in frets-starter is pretty clean, but some of it could be brought into the main frets library as an optional module.

Something like:

import {registerNavigation} from "frets"


export interface IRouteKeys {
  About: SampleScreens;
  Home: SampleScreens;
  Users: SampleScreens;
}

export const routeKeys: IKeyObject = {
  Home: "/home",
  Users: "/users",
  About: "/about",
};

F = registerNavigation<MyProps, MyActions>(myApp, routeKeys)
@sirtimbly sirtimbly added the enhancement New feature or request label Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant