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 SurfaceComponent prop to header #10

Closed e-younan closed 1 year ago

e-younan commented 1 year ago

Description

This PR introduces a SurfaceComponent to the exported header to allow for animating the surface component of the header.

Motivation and Context

This feature was introduced so that developers can customize the surface component of the header. This will allow for components like BlurView to be added as a SurfaceComponent to closely mimic native headers on iOS.

How Has This Been Tested?

These changes were tested on iOS and Android to ensure that they work as expected.

Types of changes

Checklist:

Screenshots

https://user-images.githubusercontent.com/128341688/235001660-0f4ca549-cfe4-46a4-a0b6-2dad9f163c51.mov