Navigate to a React Native component

InstructorTyler McGinnis

Share this video with your friends

Send Tweet

Now that we've created the React Native component for our repositories view, we still need to wire it into the routing so that we can visit its view.

Marty
~ 9 years ago

When I went to test, I got the following error:

Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of NavigatorIOS.

I got same error in #6 React Native: Passing data when changing routes.

In Repositories.js the last line should be: module.exports = Repositories;

I had it as: module.export = Repositories;

Rolando Barbella
~ 8 years ago

I'm getting this error

index.android.bundle:28678Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `Repositories`.

plus

Possible Unhandled Promise Rejection (id: 1):
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `Repositories`.

Anyone that can help? please