feat: absolute headers #16
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces two new props to all scroll containers:
absoluteHeaderandinitialAbsoluteHeaderHeight. These props allow you to position the header absolutely, so that the scroll container content can scroll behind the header.Motivation and Context
iOS native headers allow for a blurred header above a scroll container. As the user scrolls, the content below can be seen through the blurred surface. These changes were made to introduce that functionality to the scroll containers exported in this library.
How Has This Been Tested?
These changes have been tested via the example application, and all other examples are working as expected.
Types of changes
Checklist:
Screenshots
Screen.Recording.2023-06-28.at.8.38.13.PM.mov
Additional Notes
The reason for the changes in API for this feature is because a
BlurViewspecifically requires itself to be defined after the scroll container to work properly.