Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. #116

Open
Afondevi opened this issue Nov 13, 2021 · 2 comments

Comments

@Afondevi
Copy link

Hello,

I get this error on use like your doc :

React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

And HeaderImageScrollView component is not define as component : JSX element type 'HeaderImageScrollView' does not have any construct or call signatures.ts(2604)

image

Thanks in advance

@dev-arsh
Copy link

dev-arsh commented Dec 7, 2021

@Afondevi The demo code on package does not have updated import statements. Use this,

import { TriggeringView, ImageHeaderScrollView } from 'react-native-image-header-scroll-view';

@PROMEDIK-INDONESIA
Copy link

@Afondevi The demo code on package does not have updated import statements. Use this,

import { TriggeringView, ImageHeaderScrollView } from 'react-native-image-header-scroll-view';

Thank you so much for this

JakovGlavac added a commit to JakovGlavac/react-native-image-header-scroll-view that referenced this issue Feb 17, 2023
Fix issue bamlab#116 

This is so trivial to fix, yet it wastes so much time debugging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants