jmurzy/react-router-native

Can't specify routes as a plain object

Opened this issue · 0 comments

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?