jmurzy / jmurzy/react-router-native

Can't specify routes as a plain object

Open
#73 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.