bamlab/react-native-image-header-scroll-view

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.

Opened this issue · 2 comments

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

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

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

@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