jmurzy / jmurzy/react-router-native
Can't specify routes as a plain object
Open
- Dominant language
- JavaScript
- Stars
- 639
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
In `react-router` you can define your routes as a plain object, as [seen here](https://github.com/ReactTraining/react-router/blob/master/docs/guides/RouteConfiguration.md#configuration-with-plain-routes)
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?
Contributor guide
Assessment
This issue has not been assessed yet.