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: add LargeHeaderSubtitleComponent #29

Closed aharwood9 closed 4 months ago

aharwood9 commented 4 months ago

Description

Closes #24. Adds a LargeHeaderSubtitleComponent to all the containers so that a component can be added to the ListHeaderComponent/ScrollView.

Motivation and Context

I would like to add additional components to the ListHeader that don't get impact the header animation. For example, several lines of text.

How Has This Been Tested?

This has been tested in both the Simple ScrollView and the FlatList in the example. I have added the subtitle to the ScrollView for future testing.

Types of changes

Checklist:

Screenshots

Simulator Screenshot - iPhone 15 Pro - 2024-03-01 at 10 39 10

Additional Notes (Optional)

Please include any additional information or context that may be helpful for the reviewer.

aharwood9 commented 4 months ago

@e-younan - This should be ready for review. I have updated the simple example to use the new subtitle header as the subtitle is relatively simple and don't want to impact the design of the twitter one etc.

I have updated the docs to include the new prop as well. I am not sure how you want to visualise this - I am not sure if this is required.

e-younan commented 4 months ago

Feel free to check out the latest version on npm!