Closed harika-nammi closed 1 year ago
I ran into the same issue after finding that post. The problem is that the example is old. Take a look at this file to see the library exports: https://github.com/netguru/sticky-parallax-header/blob/master/src/index.tsx
Environment
Library version: 1.0.0-rc.9 OS version: iPhone 13, iOS 12.5.1
Affected platforms
Current behavior
Hi, i am using https://www.netguru.com/blog/implement-an-app-store-header-in-react-native-with-sticky-parallax-library for customising the header part. But i am getting an error like
Error: Element 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.
Screenshot:-
Expected behavior
It works without an error.
Reproduction
https://www.netguru.com/blog/implement-an-app-store-header-in-react-native-with-sticky-parallax-library using this repo.
Code:-