Add support for using the CollapsibleHeader behavior through hooks to be more performant / intuitive.
Additional Context (where / how would this be used)
Applying the necessary props through hooks would simplify the usage and prevent the user from needing to understand the underlying implementation details. The components could be used more declaratively instead of passing everything through props or functions.
The proposed implementation would look something like this. I have implemented this on a smaller scale with a simplified Header component (fewer features, fixed sizes for collapsed/expanded) and it worked like a charm. It would need to be expanded to support the additional capabilities/configurability of our Header.
Describe the desired feature/functionality
Add support for using the CollapsibleHeader behavior through hooks to be more performant / intuitive.
Additional Context (where / how would this be used)
Applying the necessary props through hooks would simplify the usage and prevent the user from needing to understand the underlying implementation details. The components could be used more declaratively instead of passing everything through props or functions.
Is this request related to a current issue?
Related to previous issue https://github.com/etn-ccis/blui-react-native-component-library/issues/218 where we initially added support for alternative containers.
Suggested implementation details
The proposed implementation would look something like this. I have implemented this on a smaller scale with a simplified Header component (fewer features, fixed sizes for collapsed/expanded) and it worked like a charm. It would need to be expanded to support the additional capabilities/configurability of our Header.
Hook implementation:
Usage: