Skip to content

Can't specify routes as a plain object #73

@ghost

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions