gorhom / react-native-bottom-sheet

A performant interactive bottom sheet with fully configurable options 🚀
https://ui.gorhom.dev/components/bottom-sheet
MIT License
6.64k stars 738 forks source link

Allow Initial Positioning of Bottom Sheet from a Fixed Offset #1898

Closed IdoAviramMoveo closed 1 month ago

IdoAviramMoveo commented 1 month ago

Feature Request

Why it is needed

Currently, the Bottom Sheet always starts from the very bottom of the screen. In some use cases, it's desirable to have the Bottom Sheet start from a fixed position offset from the bottom, for instance, 40px from the bottom of the screen. This feature would enhance the flexibility of the Bottom Sheet's initial positioning, allowing for more customizable UI designs.

Possible implementation

The feature could be implemented by adding a new prop to the Bottom Sheet component that specifies the initial offset from the bottom. This prop could accept a numeric value representing the pixel offset. The Bottom Sheet's initial position would be adjusted based on this value.

This addition would allow developers to set an initial offset for the Bottom Sheet, providing more control over its starting position on the screen.

Thank you!

github-actions[bot] commented 1 month ago

@IdoAviramMoveo: hello! :wave:

This issue is being automatically closed because it does not follow the issue template.