netguru / sticky-parallax-header

A simple React Native library, enabling the creation of fully customized header for your iOS and Android apps.
https://netguru.github.io/sticky-parallax-header/
MIT License
1.86k stars 190 forks source link

Error using DetailsHeaderScrollView in Expo Web: createAnimatedComponent does not support stateless functional components; use a class component instead. #379

Closed abbottdev closed 1 year ago

abbottdev commented 1 year ago

Environment

Library version: 1.0.0-rc.9 OS version: Windows 11, Edge.

Affected platforms

Current behavior

image

An error occurs viewing this in a Web browser. The error message is quite clear in that it should be using a class component instead of a functional component if using Reanimated: https://github.com/software-mansion/react-native-reanimated/issues/593

Expected behavior

The error does not appear.

Reproduction

Include a DetailsHeaderScrollView in a blank expo project and run the web compiler.

mateusz1913 commented 1 year ago

Fix available in v1.1.1 🚀