The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Navigate to a React Native component

Navigate to a React Native component

2:36
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.
Watch this lesson now
Avatar
egghead.io

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.

Avatar
Marty

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;

Avatar
Rolando

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

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?