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

Can't specify routes as a plain object #73

Open
ghost opened this issue Feb 8, 2017 · 0 comments
Open

Can't specify routes as a plain object #73

ghost opened this issue Feb 8, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2017

In react-router you can define your routes as a plain object, as seen here

When I pass in a simple example, I get the following error.

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

Does react-router-native not support defining routes as a plain object? Or am I just doing it incorrectly?

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

0 participants