Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to Disable Horizontal Swipe in CalendarContainer #154

Open
ycgarrido opened this issue Nov 13, 2024 · 0 comments
Open

Option to Disable Horizontal Swipe in CalendarContainer #154

ycgarrido opened this issue Nov 13, 2024 · 0 comments

Comments

@ycgarrido
Copy link

Problem

Currently, CalendarContainer allows horizontal swipe gestures by default, but there is no built-in option to disable this functionality. In some use cases, it would be preferable to prevent horizontal swiping to improve navigation control or avoid accidental scrolling.

Suggested Enhancement

Adding a property to enable or disable horizontal swipe functionality in CalendarContainer would be highly beneficial. This could be something like disableSwipe or allowHorizontalSwipe, which developers could set to true or false as needed.

Additional Context

In certain configurations, such as when using CalendarContainer within a modal (e.g., @gorhom/bottom-sheet), the horizontal swipe can interfere with navigation and lead to an undesirable user experience.

Example Implementation

<CalendarContainer 
  allowHorizontalSwipe={false} 
  {...otherProps} 
/>

Thank you for considering this feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant