codeherence / react-native-header

A high-performance, cross-platform animated header component for React Native applications.
MIT License
218 stars 15 forks source link

feat: introduce Shopify's FlashList component #13

Closed e-younan closed 1 year ago

e-younan commented 1 year ago

Description

This PR introduces FlashList by Shopify component.

Motivation and Context

This new component was added to unlock the power of FlashList and apply the header components from this library to it.

How Has This Been Tested?

These changes were not tested thoroughly, however, they work fine in the example shown in the example application:

https://github.com/codeherence/react-native-header/assets/128341688/c8ec2922-ab87-448e-8799-b8808834b675

Types of changes

Checklist:

Additional Notes (Optional)

This feature add requires that @shopify/flash-list is properly installed in your project. Also, the example project broke when updating react-native-reanimated to the latest version (3.2.0) and was related to react-native-reanimated#4506. The following fix cited here resolved the issue. I will dive deeper into whether or not this will create regressions for versions of react-native-reanimated < 3.3.x in this library.